diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-23 16:41:32 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-23 16:41:32 +0000 |
commit | 1f5432c227d0ced5f647b8fca9751d6f35008b02 (patch) | |
tree | de5dbd38c3d98ca9193cb5eed8b78b1c8d1d3737 | |
parent | a3ab4b85f54090927c2dfa2585b9f0e48509e944 (diff) |
Merge pr-3188.cpp into constructor.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61370 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/constructor.cpp | 10 | ||||
-rw-r--r-- | test/SemaCXX/pr-3188.cpp | 3 |
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; |