• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 namespace pr6200 {
5   struct v {};
6   enum E { e };
7   struct s {
8     int i;
operator struct vpr6200::s9     operator struct v() { return v(); };
operator enum Epr6200::s10     operator enum E() { return e; }
11   };
12 
f()13   void f()
14   {
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;
20   }
21 }
22