brintos

brintos / llvm-project-archived public Read only

0
0
Text · 569 B · 669ce43 Raw
20 lines · c
1// REQUIRES: powerpc-registered-target2// RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-cpu pwr8 \3// RUN:   -verify %s4 5void test_builtin_ppc_compare_and_swap() {6  volatile int a = 0;7  long b = 0, c = 0;8 9  __compare_and_swap(&a, &b, c); // expected-error {{incompatible pointer types passing 'long *' to parameter of type 'int *'}}10 11}12 13void test_builtin_ppc_compare_and_swaplp() {14  volatile long a = 0;15  int b = 0, c = 0;16 17  __compare_and_swaplp(&a, &b, c);// expected-error {{incompatible pointer types passing 'int *' to parameter of type 'long *'}}18 19}20