aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/basic/basic.lookup/basic.lookup.unqual/p11.cpp
blob: 1b56ecd27d68da372cf276bd03d5630c3547e6a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -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 {
};