[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / redefine_extname.c
blob8ccac7ffcd4137a055600be369dbcb8c25ef13a9
1 // RUN: %clang_cc1 -triple=x86_64-unknown-linux -Wpragmas -verify %s
2 // RUN: %clang_cc1 -triple=powerpc64-ibm-aix-xcoff -Wpragmas -verify %s
4 // Check that pragma redefine_extname applies to external declarations only.
5 #pragma redefine_extname foo_static bar_static
6 static int foo_static(void) { return 1; } // expected-warning {{#pragma redefine_extname is applicable to external C declarations only; not applied to function 'foo_static'}}
8 unsigned __int128_t; // expected-error {{redefinition of '__int128_t' as different kind of symbol}}