brintos

brintos / llvm-project-archived public Read only

0
0
Text · 437 B · 980802b Raw
9 lines · cpp
1// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -ast-dump -frecovery-ast %s | FileCheck %s2 3void foo();4void fun(int arg = foo());5//      CHECK: -ParmVarDecl {{.*}} <col:10, col:24> col:14 invalid arg 'int' cinit6// CHECK-NEXT:   -RecoveryExpr {{.*}} <col:18, col:24> 'int' contains-errors7// Make sure we also preserve structure of the errorneous expression8//      CHECK:     -DeclRefExpr {{.*}} <col:20> 'void ()' {{.*}} 'foo'9