summaryrefslogtreecommitdiffstats
path: root/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp
blob: 8fb35c8c91c20351c8e9d7b4e21a8618f4cd186d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -fsyntax-only -verify %s

float global_f;

void f0(int *ip = &global_f); // expected-error{{incompatible}}

// Example from C++03 standard
int a = 1; 
int f(int); 
int g(int x = f(a));

void h() { 
  a = 2;
  {
    int *a = 0;
    g(); // FIXME: check that a is called with a value of 2
  }
}