summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/exprs.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-14 21:18:50 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-14 21:18:50 +0000
commitfeb84b0074d249930fe5efa39e1bf700810bb76c (patch)
tree36f59958ef90b80b9ea46c3654369759935f6b14 /clang/test/PCH/exprs.h
parenta723ba97db0e47f024118fa9f132d307dcfc75d4 (diff)
downloadbcm5719-llvm-feb84b0074d249930fe5efa39e1bf700810bb76c.tar.gz
bcm5719-llvm-feb84b0074d249930fe5efa39e1bf700810bb76c.zip
PCH support for a few very, very simple kinds of expressions. Hook up
expression (de-)serialization for VLAs, variable initializers, enum constant initializers, and bitfield widths. llvm-svn: 69075
Diffstat (limited to 'clang/test/PCH/exprs.h')
-rw-r--r--clang/test/PCH/exprs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/PCH/exprs.h b/clang/test/PCH/exprs.h
new file mode 100644
index 00000000000..db6513c35bd
--- /dev/null
+++ b/clang/test/PCH/exprs.h
@@ -0,0 +1,14 @@
+// Header for PCH test exprs.c
+
+// DeclRefExpr
+int i = 17;
+enum Enum { Enumerator = 18 };
+typedef typeof(i) int_decl_ref;
+typedef typeof(Enumerator) enum_decl_ref;
+
+// IntegerLiteralExpr
+typedef typeof(17) integer_literal;
+typedef typeof(17l) long_literal;
+
+// CharacterLiteralExpr
+typedef typeof('a') char_literal;
OpenPOWER on IntegriCloud