Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
      3 
      4 void f() {
      5   int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
      6 }
      7