From e9fbbe52f18826d5e44aaf596a59439cab4f4c60 Mon Sep 17 00:00:00 2001 From: Graham Yiu Date: Fri, 3 Aug 2018 14:36:44 +0000 Subject: [PATCH] Fix asm label testcase flaw - Testcase attempts to (not) grep 'g0' in output to ensure asm symbol is properly renamed, but g0 is too generic and can be part of the module's path in LLVM IR output. - Changed to grep '@g0', which is what the proper global symbol name would be if not using asm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338895 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/2008-07-31-asm-labels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CodeGen/2008-07-31-asm-labels.c b/test/CodeGen/2008-07-31-asm-labels.c index 733742bd85..65a02b6fa0 100644 --- a/test/CodeGen/2008-07-31-asm-labels.c +++ b/test/CodeGen/2008-07-31-asm-labels.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 -// RUN: not grep 'g0' %t +// RUN: not grep '@g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t -- 2.40.0