summaryrefslogtreecommitdiff
path: root/clang/test/PCH/cxx-reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/cxx-reference.h')
-rw-r--r--clang/test/PCH/cxx-reference.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-reference.h b/clang/test/PCH/cxx-reference.h
new file mode 100644
index 0000000..b46a367
--- /dev/null
+++ b/clang/test/PCH/cxx-reference.h
@@ -0,0 +1,13 @@
+// Header for PCH test cxx-reference.cpp
+
+typedef char (&LR);
+typedef char (&&RR);
+
+char c;
+
+char &lr = c;
+char &&rr = 'c';
+LR &lrlr = c;
+LR &&rrlr = c;
+RR &lrrr = c;
+RR &&rrrr = 'c';