From f6884ac7cfc4c5562c0678ad65b3460a38f56e23 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 29 Jan 2008 01:15:48 +0000 Subject: Correctly handle scalars in braces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46480 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/init.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CodeGen/init.c (limited to 'test/CodeGen/init.c') diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c new file mode 100644 index 0000000000..77a85fa75c --- /dev/null +++ b/test/CodeGen/init.c @@ -0,0 +1,7 @@ +// RUN: clang -emit-llvm %s +void f1() +{ + // Braces in a scalar + int a = { 1 }; + int b = { 1, 2 }; +} \ No newline at end of file -- cgit v1.2.3-70-g09d2