Clang Project

clang_source_code/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3static const int a = 10;
4
5void f0(int a, 
6        int b = a) { // expected-error {{default argument references parameter 'a'}}
7}
8
9template<int a, 
10         int b = a>
11class A {
12};
13