// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


struct athing { float a, b; };
struct anestedthing { float a, b; float c[5]; };

shader test() {
  athing goodthing[4] = { {0,1}, {1,2}, {3,4}, {5,6} };
  athing badthing[3] = { {0,1}, {1,2}, {3,4}, {5,6} };

  float good[4] = { 0 ? 0 : 0, 1, 2, 3 };
  float bad[4] = { 0, 1, 2, 3 ? 3 : 3, 4 };

  float badone[1] = { 1, 2 };

  anestedthing oknest = { 1, 2, {1,2,3,4,5} };
  anestedthing badnest = { 1, 2, {1,2,3,4,5,6} };

  int toalfail[0];
  int oncemore[1] = {};
}
