[cfe-commits] r114586 - /cfe/trunk/test/CodeGen/debug-info-var-location.c

Devang Patel dpatel at apple.com
Wed Sep 22 14:13:48 PDT 2010


Author: dpatel
Date: Wed Sep 22 16:13:48 2010
New Revision: 114586

URL: http://llvm.org/viewvc/llvm-project?rev=114586&view=rev
Log:
Testcase for r114585.

Added:
    cfe/trunk/test/CodeGen/debug-info-var-location.c

Added: cfe/trunk/test/CodeGen/debug-info-var-location.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-var-location.c?rev=114586&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/debug-info-var-location.c (added)
+++ cfe/trunk/test/CodeGen/debug-info-var-location.c Wed Sep 22 16:13:48 2010
@@ -0,0 +1,21 @@
+// RUN: %clang -S -g -fverbose-asm %s -o - | FileCheck %s
+// Radar 8461032
+// CHECK: DW_AT_location
+// CHECK-NEXT: byte 145
+
+// 145 is DW_OP_fbreg
+struct s {
+  int a;
+  struct s *next;
+};
+
+int foo(struct  s *s) {
+  switch (s->a) {
+  case 1:
+  case 2: {
+    struct s *sp = s->next;
+  }
+    break;
+  }
+  return 1;
+}





More information about the cfe-commits mailing list