diff options
Diffstat (limited to 'test/Sema/attr-malloc.c')
-rw-r--r-- | test/Sema/attr-malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/attr-malloc.c b/test/Sema/attr-malloc.c index 1adcf07..6483ffc 100644 --- a/test/Sema/attr-malloc.c +++ b/test/Sema/attr-malloc.c @@ -1,5 +1,5 @@ -// RUN: clang-cc -verify -fsyntax-only %s && -// RUN: clang-cc -emit-llvm -o %t %s && +// RUN: clang -Xclang -verify -fsyntax-only %s +// RUN: clang -emit-llvm -S -o %t %s #include <stdlib.h> @@ -16,7 +16,7 @@ __attribute((malloc)) int (*g)(); // expected-warning{{'malloc' attribute only a __attribute((malloc)) void * xalloc(unsigned n) { return malloc(n); } // no-warning -// RUN: grep 'define noalias .* @xalloc(' %t && +// RUN: grep 'define noalias .* @xalloc(' %t #define malloc_like __attribute((__malloc__)) void * xalloc2(unsigned) malloc_like; |