Merge pr-3188.cpp into constructor.cpp.

llvm-svn: 61370
This commit is contained in:
Sebastian Redl 2008-12-23 16:41:32 +00:00
parent ae503aee1d
commit ccd251b88f
2 changed files with 10 additions and 3 deletions

View 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;

View File

@ -1,3 +0,0 @@
// RUN: clang -fsyntax-only %s
struct x;
extern x a;