Merge test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123914 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/crashes.cpp b/test/SemaCXX/crashes.cpp
index 87bde2a..9b0f19e 100644
--- a/test/SemaCXX/crashes.cpp
+++ b/test/SemaCXX/crashes.cpp
@@ -68,3 +68,12 @@
     callback<void(const int&)> op;
 }
 }
+
+namespace PR9007 {
+  struct bar {
+    enum xxx {
+      yyy = sizeof(struct foo*)
+    };
+    foo *xxx();
+};
+}