1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
21 lines
372 B
C++
21 lines
372 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
namespace pr6200 {
|
|
struct v {};
|
|
enum E { e };
|
|
struct s {
|
|
int i;
|
|
operator struct v() { return v(); };
|
|
operator enum E() { return e; }
|
|
};
|
|
|
|
void f()
|
|
{
|
|
// None of these is a declaration.
|
|
(void)new struct s;
|
|
(void)new enum E;
|
|
(void)&s::operator struct v;
|
|
(void)&s::operator enum E;
|
|
}
|
|
}
|