1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
2 | // RUN: %clang_cc1 %s -fsyntax-only -verify -x c |
3 | // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-compatibility |
4 | |
5 | // Redeclaring library builtins is OK. |
6 | void exit(int); |
7 | |
8 | // expected-error@+2 {{cannot redeclare builtin function '__builtin_va_copy'}} |
9 | // expected-note@+1 {{'__builtin_va_copy' is a builtin with type}} |
10 | void __builtin_va_copy(double d); |
11 | |
12 | // expected-error@+2 {{cannot redeclare builtin function '__builtin_va_end'}} |
13 | // expected-note@+1 {{'__builtin_va_end' is a builtin with type}} |
14 | void __builtin_va_end(__builtin_va_list); |
15 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
16 | // RUN: %clang_cc1 %s -fsyntax-only -verify -x c |
17 | |
18 | void __va_start(__builtin_va_list*, ...); |
19 | |