Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.names / p2.cpp
blob532dd84ecb439291c635ac7a099be1b9e8618f7e
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // Ensure that when enforcing access control an unqualified template name with
5 // explicit template arguments, we don't lose the context of the name lookup
6 // because of the required early lookup to determine if it names a template.
7 namespace PR7163 {
8 template <typename R, typename P> void h(R (*func)(P)) {}
9 class C {
10 template <typename T> static void g(T*) {};
11 public:
12 void f() { h(g<int>); }