1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Check the error message on using ", ..." when we can't actually forward 4*9880d681SAndroid Build Coastguard Worker; varargs. 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker%struct.A = type { i32 } 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdeclare i8* @f(i8*, ...) 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine i8* @f_thunk(i8* %this) { 11*9880d681SAndroid Build Coastguard Worker %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...) 12*9880d681SAndroid Build Coastguard Worker; CHECK: error: unexpected ellipsis in argument list for musttail call in non-varargs function 13*9880d681SAndroid Build Coastguard Worker ret i8* %rv 14*9880d681SAndroid Build Coastguard Worker} 15