diff options
-rw-r--r-- | test/SemaCXX/PR9007.cpp | 7 | ||||
-rw-r--r-- | test/SemaCXX/crashes.cpp | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/test/SemaCXX/PR9007.cpp b/test/SemaCXX/PR9007.cpp deleted file mode 100644 index cba9e30162..0000000000 --- a/test/SemaCXX/PR9007.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only %s -struct bar { - enum xxx { - yyy = sizeof(struct foo*) - }; - foo *xxx(); -}; diff --git a/test/SemaCXX/crashes.cpp b/test/SemaCXX/crashes.cpp index 87bde2aa93..9b0f19e746 100644 --- a/test/SemaCXX/crashes.cpp +++ b/test/SemaCXX/crashes.cpp @@ -68,3 +68,12 @@ void f() callback<void(const int&)> op; } } + +namespace PR9007 { + struct bar { + enum xxx { + yyy = sizeof(struct foo*) + }; + foo *xxx(); +}; +} |