1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc void __both3(void); 4*f4a2713aSLionel Sambuc #pragma weak both3 = __both3 // expected-note {{previous definition}} 5*f4a2713aSLionel Sambuc void both3(void) __attribute((alias("__both3"))); // expected-error {{redefinition of 'both3'}} __both3(void)6*f4a2713aSLionel Sambucvoid __both3(void) {} 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc void __a3(void) __attribute((noinline)); 9*f4a2713aSLionel Sambuc #pragma weak a3 = __a3 // expected-note {{previous definition}} 10*f4a2713aSLionel Sambuc void a3(void) __attribute((alias("__a3"))); // expected-error {{redefinition of 'a3'}} __a3(void)11*f4a2713aSLionel Sambucvoid __a3(void) {} 12