1 // RUN: %clang_cc1 -verify -x c++ -std=c++11 %s
2 // RUN: %clang_cc1 -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s
3 
4 struct X {
5   int i;
6 };
7 
func()8 void func() {
9   // CHECK: fix-it:"{{.*}}":{10:6-10:8}:"{}"
10   X x(); // expected-warning {{function declaration}} expected-note{{replace parentheses with an initializer}}
11 
12   typedef int *Ptr;
13   // CHECK: fix-it:"{{.*}}":{14:8-14:10}:" = nullptr"
14   Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
15 
16   // CHECK: fix-it:"{{.*}}":{17:15-17:17}:" = u'\\0'"
17   char16_t u16(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
18 
19   // CHECK: fix-it:"{{.*}}":{20:15-20:17}:" = U'\\0'"
20   char32_t u32(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
21 }
22