Append the test runs with '&&'.
[clang.git] / test / Sema / builtin-object-size.c
blob27a2782d0cf21ae39d1cce443e4fdab5b3ac11f1
1 // RUN: clang -fsyntax-only -verify %s &&
2 // RUN: clang -fsyntax-only -triple x86_64-apple-darwin9 -verify %s
4 int a[10];
6 int f0() {
7 return __builtin_object_size(&a); // expected-error {{too few arguments to function}}
9 int f1() {
10 return (__builtin_object_size(&a, 0) +
11 __builtin_object_size(&a, 1) +
12 __builtin_object_size(&a, 2) +
13 __builtin_object_size(&a, 3));
15 int f2() {
16 return __builtin_object_size(&a, -1); // expected-error {{argument should be a value from 0 to 3}}
18 int f3() {
19 return __builtin_object_size(&a, 4); // expected-error {{argument should be a value from 0 to 3}}
23 // rdar://6252231 - cannot call vsnprintf with va_list on x86_64
24 void f4(const char *fmt, ...) {
25 __builtin_va_list args;
26 __builtin___vsnprintf_chk (0, 42, 0, 11, fmt, args);