summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-26 01:11:20 +0000
committerEric Christopher <echristo@apple.com>2011-07-26 01:11:20 +0000
commitad869153babbc8c98f7666c22ea701b4bb352990 (patch)
tree692e4b329628742cd33cef809702f738aa0a5c77 /clang/test/CodeGen
parente6051006ba15b9dd9d43b8f6d545c98d5d74ec6a (diff)
downloadbcm5719-llvm-ad869153babbc8c98f7666c22ea701b4bb352990.tar.gz
bcm5719-llvm-ad869153babbc8c98f7666c22ea701b4bb352990.zip
Remove this test, it's more properly an optimizer test.
llvm-svn: 136036
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/2010-05-14-Optimized-VarType.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/clang/test/CodeGen/2010-05-14-Optimized-VarType.c b/clang/test/CodeGen/2010-05-14-Optimized-VarType.c
deleted file mode 100644
index e56644b8dbe..00000000000
--- a/clang/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;
-}
-
OpenPOWER on IntegriCloud