p5.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3float global_f;
4
5void f0(int *ip = &global_f); // expected-error{{incompatible}}
6
7// Example from C++03 standard
8int a = 1;
9int f(int);
10int g(int x = f(a));
11
12void h() {
13  a = 2;
14  {
15    int *a = 0;
16    g(); // FIXME: check that a is called with a value of 2
17  }
18}
19