aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-template-recovery.cpp
blob: e22f6c55e3f0c2d0e0761467527dc31b18278599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s

template <class T>
void Foo<T>::Bar(void* aRawPtr) { // expected-error {{no template named 'Foo'}}
    (void)(aRawPtr);
}

namespace baz {
  class klass {};
}

int *variable = 0; // ok
const baz::klass object; // ok