brintos

brintos / llvm-project-archived public Read only

0
0
Text · 251 B · 2c9cd88 Raw
21 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4// PR57875class C {6 public:7  ~C() {}8};9 10template <typename T>11class E {12 public:13  E& Foo(const C&);14  E& Bar() { return Foo(C()); }15};16 17void Test() {18  E<int> e;19  e.Bar();20}21