mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
8fbe78f6fc
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
7 lines
275 B
C
7 lines
275 B
C
// RUN: %clang_cc1 -fsyntax-only -verify -triple=i686-pc-linux-gnu %s
|
|
|
|
int a() {
|
|
__builtin_va_arg((char*)0, int); // expected-error {{expression is not assignable}}
|
|
__builtin_va_arg((void*){0}, int); // expected-error {{first argument to 'va_arg' is of type 'void *'}}
|
|
}
|