summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-03-28 03:24:54 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-03-28 03:24:54 +0000
commit09a9b6e33524a9dc1c23f38adb146f61b64b8ff0 (patch)
tree069a62c650b702b931c4f90885ac173f43974bbd /clang/test
parent7c7a0e86aed7354c1a59c611c079e8053c7b8d12 (diff)
downloadbcm5719-llvm-09a9b6e33524a9dc1c23f38adb146f61b64b8ff0.tar.gz
bcm5719-llvm-09a9b6e33524a9dc1c23f38adb146f61b64b8ff0.zip
Move where block-related variables are initialized so that block
types don't get generated when blocks aren't used. llvm-svn: 67898
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/const-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/const-init.c b/clang/test/CodeGen/const-init.c
index e7b83a33ce3..a7220e0c29b 100644
--- a/clang/test/CodeGen/const-init.c
+++ b/clang/test/CodeGen/const-init.c
@@ -28,13 +28,13 @@ _Complex double g1x = 1.0f;
_Complex double g1y = 1.0fi;
// RUN: grep '@g1 = global %. { i8 1, i8 10 }' %t &&
_Complex char g1 = (char) 1 + (char) 10 * 1i;
-// RUN: grep '@g2 = global .struct.__block_descriptor { i32 1, i32 10 }' %t &&
+// RUN: grep '@g2 = global %2 { i32 1, i32 10 }' %t &&
_Complex int g2 = 1 + 10i;
// RUN: grep '@g3 = global %. { float 1.000000e+00, float 1.000000e+01 }' %t &&
_Complex float g3 = 1.0 + 10.0i;
// RUN: grep '@g4 = global %. { double 1.000000e+00, double 1.000000e+01 }' %t &&
_Complex double g4 = 1.0 + 10.0i;
-// RUN: grep '@g5 = global .struct.__block_descriptor zeroinitializer' %t &&
+// RUN: grep '@g5 = global %2 zeroinitializer' %t &&
_Complex int g5 = (2 + 3i) == (5 + 7i);
// RUN: grep '@g6 = global %. { double -1.100000e+01, double 2.900000e+01 }' %t &&
_Complex double g6 = (2.0 + 3.0i) * (5.0 + 7.0i);
OpenPOWER on IntegriCloud