view clang/test/CodeGen/2004-01-01-UnknownInitSize.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900 (2021-06-07)
parents 1d019706d866
children
line wrap: on
line source
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null

/*
 * This regression test ensures that the C front end can compile initializers
 * even when it cannot determine the size (as below).
*/
struct one
{
  int a;
  int values [];
};

struct one hobbit = {5, {1, 2, 3}};