150
|
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
2
|
|
3 // PR10355
|
|
4 template<typename T> void template_id1() {
|
|
5 template_id2<> t; // expected-error-re {{no template named 'template_id2'{{$}}}}
|
|
6 }
|
|
7
|
|
8 // FIXME: It would be nice if we could get this correction right.
|
|
9 namespace PR12297 {
|
|
10 namespace A {
|
|
11 typedef short T;
|
|
12
|
|
13 namespace B {
|
|
14 typedef short T;
|
|
15
|
|
16 T global(); // expected-note {{'::PR12297::global' declared here}}
|
|
17 }
|
|
18 }
|
|
19
|
|
20 using namespace A::B;
|
|
21
|
|
22 // FIXME: Adding '::PR12297::' is not needed as removing 'A::' is sufficient
|
|
23 T A::global(); // expected-error {{out-of-line declaration of 'global' does not match any declaration in namespace 'PR12297::A'; did you mean '::PR12297::global'?}}
|
|
24 }
|