Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.param / p5.cpp
blob4cb2d4343a335f17627d0b365f329137a768f456
1 // RUN: %clang_cc1 -verify %s -std=c++14
3 template<const int I> struct S { // expected-error {{reference member 'r' binds to a temporary object}}
4 decltype(I) n;
5 int &&r = I; // expected-note {{default member initializer}}
6 };
7 S<5> s; // expected-note {{implicit default constructor}}
9 template<typename T, T v> struct U { // expected-error {{reference member 'r' binds to a temporary object}}
10 decltype(v) n;
11 int &&r = v; // expected-note {{default member initializer}}
13 U<const int, 6> u; // expected-note {{implicit default constructor}}