r193110 - Make this test pass -verify.

Rafael Espindola rafael.espindola at gmail.com
Mon Oct 21 12:48:28 PDT 2013


Author: rafael
Date: Mon Oct 21 14:48:28 2013
New Revision: 193110

URL: http://llvm.org/viewvc/llvm-project?rev=193110&view=rev
Log:
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

Modified:
    cfe/trunk/test/CodeGen/pragma-weak.c

Modified: cfe/trunk/test/CodeGen/pragma-weak.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/pragma-weak.c?rev=193110&r1=193109&r2=193110&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/pragma-weak.c (original)
+++ cfe/trunk/test/CodeGen/pragma-weak.c Mon Oct 21 14:48:28 2013
@@ -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





More information about the cfe-commits mailing list