xref: /llvm-project/clang/test/Parser/altivec-csk-bool.c (revision 758aad76d88000fd9cada032fb4e7afa5e27e61c)
1*758aad76SEric Christopher // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s
2*758aad76SEric Christopher // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s
399a084b7SBill Schmidt 
499a084b7SBill Schmidt // PR16456: Verify that bool, true, false are treated as context-sensitive
599a084b7SBill Schmidt // keywords (and therefore available for use as identifiers) when in
699a084b7SBill Schmidt // Altivec mode.
799a084b7SBill Schmidt 
899a084b7SBill Schmidt typedef enum {
999a084b7SBill Schmidt   false_value = 0,
1099a084b7SBill Schmidt   true_value = 1
1199a084b7SBill Schmidt } bool;
1299a084b7SBill Schmidt 
1399a084b7SBill Schmidt #define true true_value
1499a084b7SBill Schmidt #define false false_value
1599a084b7SBill Schmidt 
16