diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
commit | 30815c536baacc07e925f0aef23a5395883173dc (patch) | |
tree | 2cbcf22585e99f8a87d12d5ff94f392c0d266819 /test/FrontendC/2010-05-14-Optimized-VarType.c | |
parent | 411bd29eea3c360d5b48a18a17b5e87f5671af0e (diff) |
Diffstat (limited to 'test/FrontendC/2010-05-14-Optimized-VarType.c')
-rw-r--r-- | test/FrontendC/2010-05-14-Optimized-VarType.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/FrontendC/2010-05-14-Optimized-VarType.c b/test/FrontendC/2010-05-14-Optimized-VarType.c deleted file mode 100644 index 2aa85b5846ea..000000000000 --- a/test/FrontendC/2010-05-14-Optimized-VarType.c +++ /dev/null @@ -1,23 +0,0 @@ -// RUN: %llvmgcc %s -Os -S -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; -} - |