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