Ulrich Weigand | 35668cc | 2012-10-24 12:22:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -S -emit-llvm -o - %s | FileCheck %s |
Eli Friedman | 576cbd0 | 2012-02-29 00:00:28 +0000 | [diff] [blame] | 2 | |
3 | struct A { int a[1]; }; | ||||
4 | typedef A x[]; | ||||
5 | int f() { | ||||
6 | x{{{1}}}; | ||||
7 | // CHECK: define i32 @_Z1fv | ||||
8 | // CHECK: store i32 1 | ||||
9 | // (It's okay if the output changes here, as long as we don't crash.) | ||||
Eli Friedman | 576cbd0 | 2012-02-29 00:00:28 +0000 | [diff] [blame] | 10 | } |