From: Sebastian Redl Date: Tue, 23 Dec 2008 16:41:32 +0000 (+0000) Subject: Merge pr-3188.cpp into constructor.cpp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f5432c227d0ced5f647b8fca9751d6f35008b02;p=clang Merge pr-3188.cpp into constructor.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61370 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;