blob: 9c1d3a91c9bd3bccad0796e99d01cfff2cd95c1f (
plain)
1
2
3
4
5
6
7
|
// RUN: clang-cc -fsyntax-only -verify %s
void h()
{
int i;
extern void h2(int x = sizeof(i)); // expected-error {{default argument references local variable 'i' of enclosing function}}
}
|