brintos

brintos / llvm-project-archived public Read only

0
0
Text · 493 B · c14125e Raw
12 lines · c
1// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s2 3void __both3(void);4#pragma weak both3 = __both3 // expected-note {{previous definition}}5void both3(void) __attribute((alias("__both3"))); // expected-error {{redefinition of 'both3'}}6void __both3(void) {}7 8void __a3(void) __attribute((noinline));9#pragma weak a3 = __a3 // expected-note {{previous definition}}10void a3(void) __attribute((alias("__a3"))); // expected-error {{redefinition of 'a3'}}11void __a3(void) {}12