mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
5e4c75f4ef
rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
13 lines
334 B
C
13 lines
334 B
C
// RUN: clang -fsyntax-only -verify %s
|
|
struct foo {
|
|
int a;
|
|
};
|
|
|
|
int main() {
|
|
struct foo xxx;
|
|
int i;
|
|
|
|
xxx = (struct foo)1; // expected-error {{used type 'struct foo' where arithmetic or pointer type is required}}
|
|
i = (int)xxx; // expected-error {{operand of type 'struct foo' where arithmetic or pointer type is required}}
|
|
}
|