]> granicus.if.org Git - clang/commitdiff
Make this test pass -verify.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 21 Oct 2013 19:48:28 +0000 (19:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 21 Oct 2013 19:48:28 +0000 (19:48 +0000)
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

test/CodeGen/pragma-weak.c

index 53ffada1a757cffd9cd09d8e49ee0651764e28f0..40eb525e18fa2fa8526873cbd4a72038dfd7e493 100644 (file)
@@ -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