]> granicus.if.org Git - clang/commitdiff
Merge pr-3188.cpp into constructor.cpp.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 23 Dec 2008 16:41:32 +0000 (16:41 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 23 Dec 2008 16:41:32 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61370 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/constructor.cpp
test/SemaCXX/pr-3188.cpp [deleted file]

index 786d1451e62d15af396f5edb807df2568a7c3a00..536593d5120a53691b12e652e544aa173bf98d9a 100644 (file)
@@ -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 (file)
index 7d86240..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-// RUN: clang -fsyntax-only %s
-struct x;
-extern x a;