1 // The standard grammar allows an init-list with any declarator, including
2 // a function declarator. This creates an ambiguity where a function-definition
3 // is misparsed as a simple-declaration.
4 // FIXME: eliminate this false parse.
5 // XFAIL: *
6 
7 // RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
8 void s(){};
9 // CHECK-NOT:      simple-declaration
10 // CHECK:          function-definition := decl-specifier-seq declarator
11 // function-body CHECK-NOT:      simple-declaration
12