Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / PowerPC / builtins-ppc-xlcompat-cas-error.c
blobc35c54d6b1858342d4e687a0af141b2e38124e1a
1 // REQUIRES: powerpc-registered-target
2 // RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-cpu pwr8 \
3 // RUN: -verify %s
5 void test_builtin_ppc_compare_and_swap() {
6 volatile int a = 0;
7 long b = 0, c = 0;
9 __compare_and_swap(&a, &b, c); // expected-warning {{incompatible pointer types passing 'long *' to parameter of type 'int *'}}
13 void test_builtin_ppc_compare_and_swaplp() {
14 volatile long a = 0;
15 int b = 0, c = 0;
17 __compare_and_swaplp(&a, &b, c);// expected-warning {{incompatible pointer types passing 'int *' to parameter of type 'long *'}}