xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/altivec-csk-bool.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -faltivec -fsyntax-only %s
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -faltivec -fsyntax-only %s
3f4a2713aSLionel Sambuc 
4f4a2713aSLionel Sambuc // PR16456: Verify that bool, true, false are treated as context-sensitive
5f4a2713aSLionel Sambuc // keywords (and therefore available for use as identifiers) when in
6f4a2713aSLionel Sambuc // Altivec mode.
7f4a2713aSLionel Sambuc 
8f4a2713aSLionel Sambuc typedef enum {
9f4a2713aSLionel Sambuc   false_value = 0,
10f4a2713aSLionel Sambuc   true_value = 1
11f4a2713aSLionel Sambuc } bool;
12f4a2713aSLionel Sambuc 
13f4a2713aSLionel Sambuc #define true true_value
14f4a2713aSLionel Sambuc #define false false_value
15f4a2713aSLionel Sambuc 
16