]> granicus.if.org Git - clang/commitdiff
Change this to an IR test instead of an assembly test (as per comment in r171134).
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Dec 2012 01:16:31 +0000 (01:16 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Dec 2012 01:16:31 +0000 (01:16 +0000)
This makes the test not dependent on LLVM & won't vary/break based on LLVM
codegen related changes. Appropriately testing at the Clang level what was
fixed at the Clang level originally (in r124210).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171175 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/debug-info-static-var.m

index c25410747f78f5d39f54cb6bda10f62eb9c3a6d1..2c10d597797f36c8df2708f8dde6d5aebfc0607d 100644 (file)
@@ -1,14 +1,8 @@
-// REQUIRES: x86-64-registered-target
-// RUN: %clang_cc1 -g -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -S -masm-verbose -o - %s | FileCheck %s
+// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
 // Radar 8801045
 // Do not emit AT_MIPS_linkage_name for static variable i
 
-// CHECK: Lset6 = Linfo_string3-Linfo_string           ## DW_AT_name
-// CHECK-NEXT: .long   Lset6
-// CHECK-NEXT:        DW_AT_type
-// CHECK-NEXT:        DW_AT_decl_file
-// CHECK-NEXT:        DW_AT_decl_line
-// CHECK-NEXT:        DW_AT_location
+// CHECK: metadata !"i", metadata !"i", metadata !""
 
 @interface A {
 }