brintos

brintos / llvm-project-archived public Read only

0
0
Text · 379 B · 3100e56 Raw
20 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 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 standard9int 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 218  }19}20