aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/2010-05-14-Optimized-VarType.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/CodeGen/2010-05-14-Optimized-VarType.c b/test/CodeGen/2010-05-14-Optimized-VarType.c
deleted file mode 100644
index e56644b8db..0000000000
--- a/test/CodeGen/2010-05-14-Optimized-VarType.c
+++ /dev/null
@@ -1,23 +0,0 @@
-// RUN: %clang_cc1 %s -Os -emit-llvm -g -o - | grep DW_TAG_structure_type | count 1
-// Variable 'a' is optimized but the debug info should preserve its type info.
-#include <stdlib.h>
-
-struct foo {
- int Attribute;
-};
-
-void *getfoo(void) __attribute__((noinline));
-
-void *getfoo(void)
-{
- int *x = malloc(sizeof(int));
- *x = 42;
- return (void *)x;
-}
-
-int main(int argc, char *argv[]) {
- struct foo *a = (struct foo *)getfoo();
-
- return a->Attribute;
-}
-