aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/SemaCXX/constructor.cpp10
-rw-r--r--test/SemaCXX/pr-3188.cpp3
2 files changed, 10 insertions, 3 deletions
diff --git a/test/SemaCXX/constructor.cpp b/test/SemaCXX/constructor.cpp
index 786d1451e6..536593d512 100644
--- a/test/SemaCXX/constructor.cpp
+++ b/test/SemaCXX/constructor.cpp
@@ -27,3 +27,13 @@ typedef struct {
extern const Anon anon;
extern "C" const Anon anon2;
+// PR3188: The extern declaration complained about not having an appropriate
+// constructor.
+struct x;
+extern x a;
+
+// A similar case.
+struct y {
+ y(int);
+};
+extern y b;
diff --git a/test/SemaCXX/pr-3188.cpp b/test/SemaCXX/pr-3188.cpp
deleted file mode 100644
index 7d86240ef5..0000000000
--- a/test/SemaCXX/pr-3188.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-// RUN: clang -fsyntax-only %s
-struct x;
-extern x a;