blob: 3100e56a080edc7e8c7bc452e759962c2c224c0e [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3float global_f;
4
5void f0(int *ip = &global_f); // expected-error{{cannot initialize}} \
6// expected-note{{passing argument to parameter 'ip' here}}
7
8// Example from C++03 standard
9int a = 1;
10int f(int);
11int g(int x = f(a));
12
13void h() {
14 a = 2;
15 {
16 int *a = 0;
17 g(); // FIXME: check that a is called with a value of 2
18 }
19}