diff options
Diffstat (limited to 'test/CXX/dcl.decl/dcl.name/p1.cpp')
-rw-r--r-- | test/CXX/dcl.decl/dcl.name/p1.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CXX/dcl.decl/dcl.name/p1.cpp b/test/CXX/dcl.decl/dcl.name/p1.cpp new file mode 100644 index 000000000000..7586007cc7b3 --- /dev/null +++ b/test/CXX/dcl.decl/dcl.name/p1.cpp @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +namespace pr6200 { + struct v {}; + struct s { + int i; + operator struct v() { return v(); }; + }; + + void f() + { + // Neither of these is a declaration. + (void)new struct s; + (void)&s::operator struct v; + } +} |