mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 15:46:06 +00:00
9 lines
437 B
C++
9 lines
437 B
C++
// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -ast-dump -frecovery-ast %s | FileCheck %s
|
|
|
|
void foo();
|
|
void fun(int arg = foo());
|
|
// CHECK: -ParmVarDecl {{.*}} <col:10, col:24> col:14 invalid arg 'int' cinit
|
|
// CHECK-NEXT: -RecoveryExpr {{.*}} <col:18, col:24> 'int' contains-errors
|
|
// Make sure we also preserve structure of the errorneous expression
|
|
// CHECK: -DeclRefExpr {{.*}} <col:20> 'void ()' {{.*}} 'foo'
|