llvm-for-llvmta/tools/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp

13 lines
225 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
static const int a = 10;
void f0(int a,
int b = a) { // expected-error {{default argument references parameter 'a'}}
}
template<int a,
int b = a>
class A {
};