• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 namespace pr6200 {
4   struct v {};
5   enum E { e };
6   struct s {
7     int i;
operator struct vpr6200::s8     operator struct v() { return v(); };
operator enum Epr6200::s9     operator enum E() { return e; }
10   };
11 
f()12   void f()
13   {
14     // None of these is a declaration.
15     (void)new struct s;
16     (void)new enum E;
17     (void)&s::operator struct v;
18     (void)&s::operator enum E;
19   }
20 }
21