Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.name / p1.cpp
blobe032a7f92a5c141ca36745dad12b1eda686992c0
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 namespace pr6200 {
5 struct v {};
6 enum E { e };
7 struct s {
8 int i;
9 operator struct v() { return v(); };
10 operator enum E() { return e; }
13 void f()
15 // None of these is a declaration.
16 (void)new struct s;
17 (void)new enum E;
18 (void)&s::operator struct v;
19 (void)&s::operator enum E;