Home | History | Annotate | Download | only in basic.lookup.unqual
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // XFAIL: *
      3 
      4 class C {
      5 public:
      6   C(int a, int b);
      7 };
      8 
      9 C::C(int a, // expected-note {{previous definition}}
     10      int b) // expected-note {{previous definition}}
     11 try {
     12   int c;
     13 
     14 } catch (int a) { // expected-error {{redefinition of 'a'}}
     15   int b; // expected-error {{redefinition of 'b'}}
     16   ++c; // expected-error {{use of undeclared identifier 'c'}}
     17 }
     18