Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / special / class.ctor / p4-0x.cpp
blob509beb490302c65a778b3857f9071a40c26e45c6
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
3 // A constructor shall not be declared with a ref-qualifier.
4 struct X {
5 X() &; // expected-error{{ref-qualifier '&' is not allowed on a constructor}}
6 X(int) &&; // expected-error{{ref-qualifier '&&' is not allowed on a constructor}}
7 };