mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 07:06:06 +00:00
11 lines
349 B
C++
11 lines
349 B
C++
// RUN: not %clang_cc1 -triple x86_64-unknown-unknown -ast-dump -frecovery-ast %s | FileCheck %s
|
|
|
|
// CXXDefaultArgExpr should inherit dependence from the inner Expr, in this case
|
|
// RecoveryExpr.
|
|
void fun(int arg = foo());
|
|
|
|
void test() {
|
|
fun();
|
|
}
|
|
// CHECK: -CXXDefaultArgExpr 0x{{[^ ]*}} <<invalid sloc>> '<dependent type>' contains-errors lvalue
|