diff options
Diffstat (limited to 'clang/test/Sema')
25 files changed, 26 insertions, 26 deletions
diff --git a/clang/test/Sema/arg-duplicate.c b/clang/test/Sema/arg-duplicate.c index 324e9fa2712..b57fd950bf1 100644 --- a/clang/test/Sema/arg-duplicate.c +++ b/clang/test/Sema/arg-duplicate.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s typedef int x; int f3(y, x, diff --git a/clang/test/Sema/arg-invalid.c b/clang/test/Sema/arg-invalid.c index 29b51f4d88c..03ce00acc45 100644 --- a/clang/test/Sema/arg-invalid.c +++ b/clang/test/Sema/arg-invalid.c @@ -1,4 +1,4 @@ -// RUN: clang %s -parse-ast -verify +// RUN: clang %s -fsyntax-only -verify void bar (void *); void f11 (z) // expected-error {{may not have 'void' type}} diff --git a/clang/test/Sema/array-constraint.c b/clang/test/Sema/array-constraint.c index 0533a8407e7..ab2c969434d 100644 --- a/clang/test/Sema/array-constraint.c +++ b/clang/test/Sema/array-constraint.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify -pedantic %s +// RUN: clang -fsyntax-only -verify -pedantic %s struct s; struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}} diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c index 0986354e27a..510a7792d13 100644 --- a/clang/test/Sema/array-init.c +++ b/clang/test/Sema/array-init.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify -pedantic %s +// RUN: clang -fsyntax-only -verify -pedantic %s extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}} diff --git a/clang/test/Sema/assign.c b/clang/test/Sema/assign.c index efeaffbee86..43f4ba7b9a5 100644 --- a/clang/test/Sema/assign.c +++ b/clang/test/Sema/assign.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s void *test1(void) { return 0; } diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c index 87ac4fbb4ab..7f26e99dfa8 100644 --- a/clang/test/Sema/c89.c +++ b/clang/test/Sema/c89.c @@ -1,4 +1,4 @@ -/* RUN: clang %s -std=c89 -pedantic -parse-ast -verify +/* RUN: clang %s -std=c89 -pedantic -fsyntax-only -verify */ void test1() { { diff --git a/clang/test/Sema/cfstring.c b/clang/test/Sema/cfstring.c index f9fdf3ac435..d4a8552212c 100644 --- a/clang/test/Sema/cfstring.c +++ b/clang/test/Sema/cfstring.c @@ -1,6 +1,6 @@ #define CFSTR __builtin___CFStringMakeConstantString -// RUN: clang %s -parse-ast -verify +// RUN: clang %s -fsyntax-only -verify void f() { CFSTR("\242"); // expected-warning { CFString literal contains non-ASCII character } CFSTR("\0"); // expected-warning { CFString literal contains NUL character } diff --git a/clang/test/Sema/compare.c b/clang/test/Sema/compare.c index b31ace62bd5..25d7a9169b9 100644 --- a/clang/test/Sema/compare.c +++ b/clang/test/Sema/compare.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s int test(char *C) { // nothing here should warn. return C != ((void*)0); diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c index 61ad861fa8b..d241adcf2ae 100644 --- a/clang/test/Sema/decl-invalid.c +++ b/clang/test/Sema/decl-invalid.c @@ -1,3 +1,3 @@ -// RUN: clang %s -parse-ast -verify +// RUN: clang %s -fsyntax-only -verify typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}} diff --git a/clang/test/Sema/default.c b/clang/test/Sema/default.c index 92f7278033f..4efac17cfd1 100644 --- a/clang/test/Sema/default.c +++ b/clang/test/Sema/default.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s void f5 (int z) { if (z) diff --git a/clang/test/Sema/enum.c b/clang/test/Sema/enum.c index 1787c4b6f82..79a92c8f2d4 100644 --- a/clang/test/Sema/enum.c +++ b/clang/test/Sema/enum.c @@ -1,4 +1,4 @@ -// RUN: clang %s -parse-ast -verify -pedantic +// RUN: clang %s -fsyntax-only -verify -pedantic enum e {A, B = 42LL << 32, // expected-warning {{ISO C restricts enumerator values to range of 'int'}} diff --git a/clang/test/Sema/floating-point-compare.c b/clang/test/Sema/floating-point-compare.c index 0c84da26b04..6adc2283453 100644 --- a/clang/test/Sema/floating-point-compare.c +++ b/clang/test/Sema/floating-point-compare.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s int foo(float x, float y) { return x == y; // expected-warning {{comparing floating point with ==}} diff --git a/clang/test/Sema/for.c b/clang/test/Sema/for.c index 42932f6e14f..c08f532688b 100644 --- a/clang/test/Sema/for.c +++ b/clang/test/Sema/for.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s // Check C99 6.8.5p3 void b1 (void) { for (void (*f) (void);;); } diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index be2706e4aa2..83947cf7c35 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s #include <stdio.h> #include <stdarg.h> diff --git a/clang/test/Sema/id_not_builtin.m b/clang/test/Sema/id_not_builtin.m index 81988fad2ea..519e6bab8fa 100644 --- a/clang/test/Sema/id_not_builtin.m +++ b/clang/test/Sema/id_not_builtin.m @@ -1,4 +1,4 @@ -// RUN: clang %s -parse-ast -verify +// RUN: clang %s -fsyntax-only -verify id obj; // expected-error{{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}} diff --git a/clang/test/Sema/if-empty-body.c b/clang/test/Sema/if-empty-body.c index 1dc9e448177..1de6ad573d4 100644 --- a/clang/test/Sema/if-empty-body.c +++ b/clang/test/Sema/if-empty-body.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s void f1(int a) { if (a); // expected-warning {{if statement has empty body}} diff --git a/clang/test/Sema/implicit-def.c b/clang/test/Sema/implicit-def.c index 942f091d7bb..ea42d0c1c80 100644 --- a/clang/test/Sema/implicit-def.c +++ b/clang/test/Sema/implicit-def.c @@ -1,5 +1,5 @@ -/* RUN: clang -parse-ast %s -std=c89 && - * RUN: not clang -parse-ast %s -std=c99 -pedantic-errors +/* RUN: clang -fsyntax-only %s -std=c89 && + * RUN: not clang -fsyntax-only %s -std=c99 -pedantic-errors */ int A() { diff --git a/clang/test/Sema/offsetof.c b/clang/test/Sema/offsetof.c index 14b1440f5ed..3decec5ed4d 100644 --- a/clang/test/Sema/offsetof.c +++ b/clang/test/Sema/offsetof.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) diff --git a/clang/test/Sema/return-stack-addr.cpp b/clang/test/Sema/return-stack-addr.cpp index 2e384a1bca0..5506f2fe86f 100644 --- a/clang/test/Sema/return-stack-addr.cpp +++ b/clang/test/Sema/return-stack-addr.cpp @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s int* ret_local() { diff --git a/clang/test/Sema/selector-overload.m b/clang/test/Sema/selector-overload.m index a542e57d2ba..7cec1c246ec 100644 --- a/clang/test/Sema/selector-overload.m +++ b/clang/test/Sema/selector-overload.m @@ -1,4 +1,4 @@ -// RUN: clang %s -parse-ast +// RUN: clang %s -fsyntax-only #import <Foundation/NSObject.h> struct D { diff --git a/clang/test/Sema/switch-duplicate-defaults.c b/clang/test/Sema/switch-duplicate-defaults.c index d552c54d574..9ef683b48b9 100644 --- a/clang/test/Sema/switch-duplicate-defaults.c +++ b/clang/test/Sema/switch-duplicate-defaults.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s void f (int z) { switch(z) { diff --git a/clang/test/Sema/switch.c b/clang/test/Sema/switch.c index b66695bc723..0e39175817e 100644 --- a/clang/test/Sema/switch.c +++ b/clang/test/Sema/switch.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s void f (int z) { while (z) { diff --git a/clang/test/Sema/typedef-retain.c b/clang/test/Sema/typedef-retain.c index 121e7168445..9647c74702d 100644 --- a/clang/test/Sema/typedef-retain.c +++ b/clang/test/Sema/typedef-retain.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s typedef float float4 __attribute__((vector_size(16))); typedef int int4 __attribute__((vector_size(16))); diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c index d398e74d2b1..305c2be06b5 100644 --- a/clang/test/Sema/unused-expr.c +++ b/clang/test/Sema/unused-expr.c @@ -1,4 +1,4 @@ -// RUN: clang -parse-ast -verify %s +// RUN: clang -fsyntax-only -verify %s int foo(int X, int Y); diff --git a/clang/test/Sema/void_arg.c b/clang/test/Sema/void_arg.c index b390f597283..ae5328a7e33 100644 --- a/clang/test/Sema/void_arg.c +++ b/clang/test/Sema/void_arg.c @@ -1,4 +1,4 @@ -/* RUN: clang -parse-ast %s 2>&1 | grep '6 diagnostics' +/* RUN: clang -fsyntax-only %s 2>&1 | grep '6 diagnostics' */ typedef void Void; |