// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -ast-dump -frecovery-ast %s | FileCheck %s void foo(); void fun(int arg = foo()); // CHECK: -ParmVarDecl {{.*}} col:14 invalid arg 'int' cinit // CHECK-NEXT: -RecoveryExpr {{.*}} 'int' contains-errors // Make sure we also preserve structure of the errorneous expression // CHECK: -DeclRefExpr {{.*}} 'void ()' {{.*}} 'foo'