[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / builtin-redecl.cpp
blob9d1a7fff023218db810025e61cca6c319a4fb184
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
5 // Redeclaring library builtins is OK.
6 void exit(int);
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);
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
18 void __va_start(__builtin_va_list*, ...);