Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.init / dcl.init.ref / basic.cpp
blob2c9cd88e40bfd793b1e3cd820c53eb4f47b45c37
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // PR5787
5 class C {
6 public:
7 ~C() {}
8 };
10 template <typename T>
11 class E {
12 public:
13 E& Foo(const C&);
14 E& Bar() { return Foo(C()); }
17 void Test() {
18 E<int> e;
19 e.Bar();