1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 float global_f; 4 5 void 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 9 int a = 1; 10 int f(int); 11 int g(int x = f(a)); 12 13 void h() { 14 a = 2; 15 { 16 int *a = 0; 17 g(); // FIXME: check that a is called with a value of 2 18 } 19 } 20