annotate clang/test/FixIt/typo-crash.cpp @ 165:597b3f1c2c93

fix call createTailCallEliminationPass
author anatofuz
date Tue, 24 Mar 2020 15:30:52 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // PR10355
anatofuz
parents:
diff changeset
4 template<typename T> void template_id1() {
anatofuz
parents:
diff changeset
5 template_id2<> t; // expected-error-re {{no template named 'template_id2'{{$}}}}
anatofuz
parents:
diff changeset
6 }
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // FIXME: It would be nice if we could get this correction right.
anatofuz
parents:
diff changeset
9 namespace PR12297 {
anatofuz
parents:
diff changeset
10 namespace A {
anatofuz
parents:
diff changeset
11 typedef short T;
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 namespace B {
anatofuz
parents:
diff changeset
14 typedef short T;
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 T global(); // expected-note {{'::PR12297::global' declared here}}
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18 }
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 using namespace A::B;
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 // FIXME: Adding '::PR12297::' is not needed as removing 'A::' is sufficient
anatofuz
parents:
diff changeset
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'?}}
anatofuz
parents:
diff changeset
24 }