aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/altivec-csk-bool.c
blob: ba6fa3b2f77b5a4fa282e87f2aedcd810e0a55f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang -target powerpc64-unknown-linux-gnu -maltivec -fsyntax-only %s

// PR16456: Verify that bool, true, false are treated as context-sensitive
// keywords (and therefore available for use as identifiers) when in
// Altivec mode.

typedef enum {
  false_value = 0,
  true_value = 1
} bool;

#define true true_value
#define false false_value