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