[cfe-commits] r136036 - /cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c

Eric Christopher echristo at apple.com
Mon Jul 25 18:11:20 PDT 2011


Author: echristo
Date: Mon Jul 25 20:11:20 2011
New Revision: 136036

URL: http://llvm.org/viewvc/llvm-project?rev=136036&view=rev
Log:
Remove this test, it's more properly an optimizer test.

Removed:
    cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c

Removed: cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c?rev=136035&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c (original)
+++ cfe/trunk/test/CodeGen/2010-05-14-Optimized-VarType.c (removed)
@@ -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;
-}
-





More information about the cfe-commits mailing list