Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Parser/altivec-csk-bool.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s | |
2 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only %s | |
3 | |
4 // PR16456: Verify that bool, true, false are treated as context-sensitive | |
5 // keywords (and therefore available for use as identifiers) when in | |
6 // Altivec mode. | |
7 | |
8 typedef enum { | |
9 false_value = 0, | |
10 true_value = 1 | |
11 } bool; | |
12 | |
13 #define true true_value | |
14 #define false false_value | |
15 |