Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
      2 
      3 int i = delete; // expected-error{{only functions}}
      4 int j = default; // expected-error{{special member functions}}
      5 
      6 int f() = delete, g; // expected-error{{standalone}}
      7 int o, p() = delete; // expected-error{{standalone}}
      8 
      9 struct foo {
     10   foo() = default;
     11   ~foo() = delete;
     12   void bar() = delete;
     13 };
     14 
     15 void baz() = delete;
     16