From: Rafael Espindola Date: Mon, 21 Oct 2013 19:48:28 +0000 (+0000) Subject: Make this test pass -verify. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deefa7cd8df278a877220e7cdd4a3f391a108643;p=clang Make this test pass -verify. Instead of using not, just drop the fastcall attribute which was causing an warning: calling convention 'fastcall' ignored for this target git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193110 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/pragma-weak.c b/test/CodeGen/pragma-weak.c index 53ffada1a7..40eb525e18 100644 --- a/test/CodeGen/pragma-weak.c +++ b/test/CodeGen/pragma-weak.c @@ -1,4 +1,4 @@ -// RUN: not %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm %s -o - -verify | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm %s -o - -verify | FileCheck %s // CHECK: @weakvar = weak global // CHECK: @__weakvar_alias = common global @@ -147,7 +147,7 @@ void __a3(void) {} // CHECK: define void @__a3() [[NI]] #pragma weak xxx = __xxx -__attribute((pure,noinline,const,fastcall)) void __xxx(void) { } +__attribute((pure,noinline,const)) void __xxx(void) { } // CHECK: void @__xxx() [[RN:#[0-9]+]] ///////////// PR10878: Make sure we can call a weak alias