1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc namespace pr6200 { 5*f4a2713aSLionel Sambuc struct v {}; 6*f4a2713aSLionel Sambuc enum E { e }; 7*f4a2713aSLionel Sambuc struct s { 8*f4a2713aSLionel Sambuc int i; operator struct vpr6200::s9*f4a2713aSLionel Sambuc operator struct v() { return v(); }; operator enum Epr6200::s10*f4a2713aSLionel Sambuc operator enum E() { return e; } 11*f4a2713aSLionel Sambuc }; 12*f4a2713aSLionel Sambuc f()13*f4a2713aSLionel Sambuc void f() 14*f4a2713aSLionel Sambuc { 15*f4a2713aSLionel Sambuc // None of these is a declaration. 16*f4a2713aSLionel Sambuc (void)new struct s; 17*f4a2713aSLionel Sambuc (void)new enum E; 18*f4a2713aSLionel Sambuc (void)&s::operator struct v; 19*f4a2713aSLionel Sambuc (void)&s::operator enum E; 20*f4a2713aSLionel Sambuc } 21*f4a2713aSLionel Sambuc } 22