brintos

brintos / llvm-project-archived public Read only

0
0
Text · 254 B · eb96560 Raw
7 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2struct A3{4  template<int> template<typename T> friend void foo(T) {} // expected-error{{extraneous template parameter list}}5  void bar() { foo(0); } // expected-error{{use of undeclared identifier 'foo'}}6};7