Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / FixIt / typo-crash.cpp
blob5130e3e0e6df55e6a97571a7431814edbdd5f800
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // PR10355
4 template<typename T> void template_id1() {
5 template_id2<> t; // expected-error-re {{no template named 'template_id2'{{$}}}}
8 // FIXME: It would be nice if we could get this correction right.
9 namespace PR12297 {
10 namespace A {
11 typedef short T;
13 namespace B {
14 typedef short T;
16 T global(); // expected-note {{'::PR12297::global' declared here}}
20 using namespace A::B;
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'?}}