diff options
Diffstat (limited to 'test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp')
-rw-r--r-- | test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp b/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp index 7ee052c..3100e56 100644 --- a/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp +++ b/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p5.cpp @@ -2,7 +2,8 @@ float global_f; -void f0(int *ip = &global_f); // expected-error{{cannot initialize}} +void f0(int *ip = &global_f); // expected-error{{cannot initialize}} \ +// expected-note{{passing argument to parameter 'ip' here}} // Example from C++03 standard int a = 1; |