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.

llvm-svn: 338895

clang/test/CodeGen/2008-07-31-asm-labels.c

index 733742b..65a02b6 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