[flang] Update CommandTest for AIX (NFC) (#118403)
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct.default / p5.cpp
blob3100e56a080edc7e8c7bc452e759962c2c224c0e
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 float global_f;
5 void f0(int *ip = &global_f); // expected-error{{cannot initialize}} \
6 // expected-note{{passing argument to parameter 'ip' here}}
8 // Example from C++03 standard
9 int a = 1;
10 int f(int);
11 int g(int x = f(a));
13 void h() {
14 a = 2;
16 int *a = 0;
17 g(); // FIXME: check that a is called with a value of 2