]> granicus.if.org Git - clang/commitdiff
Fix asm label testcase flaw
authorGraham Yiu <graham.yiu@huawei.com>
Fri, 3 Aug 2018 14:36:44 +0000 (14:36 +0000)
committerGraham Yiu <graham.yiu@huawei.com>
Fri, 3 Aug 2018 14:36:44 +0000 (14:36 +0000)
- 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

index 733742bd85ed46d771d5b04ff747c7819abe5773..65a02b6fa00e8240a89a241288f1ba77b0792c47 100644 (file)
@@ -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