designating an object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64371
91177308-0d34-0410-b5e6-
96231b3b80d8
case PredefinedExprClass:
return LV_Valid;
case VAArgExprClass:
- return LV_Valid;
+ return LV_NotObjectType;
case CXXDefaultArgExprClass:
return cast<CXXDefaultArgExpr>(this)->getExpr()->isLvalue(Ctx);
case CXXConditionDeclExprClass:
__builtin_va_end (authors);
}
+void f7(int a, ...) {
+ __builtin_va_list ap;
+ __builtin_va_start(ap, a);
+ // FIXME: This error message is sub-par.
+ __builtin_va_arg(ap, int) = 1; // expected-error {{non-object type 'int' is not assignable}}
+ int *x = &__builtin_va_arg(ap, int); // expected-error {{address expression must be an lvalue or a function designator}}
+ __builtin_va_end(ap);
+}