From 668e894ccb30b3082321ce04048cfe7374f38dae 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. llvm-svn: 338895 --- clang/test/CodeGen/2008-07-31-asm-labels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGen/2008-07-31-asm-labels.c b/clang/test/CodeGen/2008-07-31-asm-labels.c index 733742b..65a02b6 100644 --- a/clang/test/CodeGen/2008-07-31-asm-labels.c +++ b/clang/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.7.4