1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | template<class T> struct A { |
5 | int B; |
6 | int f(); |
7 | }; |
8 | |
9 | template<class B> int A<B>::f() { |
10 | return B; |
11 | } |
12 |
1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | template<class T> struct A { |
5 | int B; |
6 | int f(); |
7 | }; |
8 | |
9 | template<class B> int A<B>::f() { |
10 | return B; |
11 | } |
12 |