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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69075 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/PCH/struct.c b/test/PCH/struct.c
index 220f079..5ea9fe2 100644
--- a/test/PCH/struct.c
+++ b/test/PCH/struct.c
@@ -23,6 +23,8 @@
return fun2->very_fun;
}
+int *int_ptr_fail = &fun->is_ptr; // expected-error{{address of bit-field requested}}
+
/* FIXME: DeclContexts aren't yet able to find "struct Nested" nested
within "struct S", so causing the following to fail. When not using
PCH, this works because Sema puts the nested struct onto the