Author: gyiu Date: Fri Aug 3 07:36:44 2018 New Revision: 338895 URL: http://llvm.org/viewvc/llvm-project?rev=338895&view=rev Log: 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. Modified: cfe/trunk/test/CodeGen/2008-07-31-asm-labels.c Modified: cfe/trunk/test/CodeGen/2008-07-31-asm-labels.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-07-31-asm-labels.c?rev=338895&r1=338894&r2=338895&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/2008-07-31-asm-labels.c (original) +++ cfe/trunk/test/CodeGen/2008-07-31-asm-labels.c Fri Aug 3 07:36:44 2018 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits