brintos

brintos / llvm-project-archived public Read only

0
0
Text · 251 B · a22ac66 Raw
17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3struct A;4 5inline int g();  // expected-warning{{inline function 'g' is not defined}}6 7template<int M>8struct R {9  friend int g() {10    return M;11  }12};13 14void m() {15  g();  // expected-note{{used here}}16}17