summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/SemaCXX/PR9007.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/PR9007.cpp b/clang/test/SemaCXX/PR9007.cpp
new file mode 100644
index 00000000000..cba9e301625
--- /dev/null
+++ b/clang/test/SemaCXX/PR9007.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only %s
+struct bar {
+ enum xxx {
+ yyy = sizeof(struct foo*)
+ };
+ foo *xxx();
+};
OpenPOWER on IntegriCloud