forked from OSchip/llvm-project
16 lines
378 B
C++
16 lines
378 B
C++
|
// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
|
||
|
|
||
|
int i = delete; // expected-error{{only functions}}
|
||
|
int j = default; // expected-error{{special member functions}}
|
||
|
|
||
|
int f() = delete, g; // expected-error{{standalone}}
|
||
|
int o, p() = delete; // expected-error{{standalone}}
|
||
|
|
||
|
struct foo {
|
||
|
foo() = default;
|
||
|
~foo() = delete;
|
||
|
void bar() = delete;
|
||
|
};
|
||
|
|
||
|
void baz() = delete;
|