blob: d7adb1e7379a87c7001bdfadd659606e0b5db9f9 [file] [log] [blame]
Ben Clayton2c1fbe82021-07-30 17:18:36 +00001SKIP: FAILED
2
David Netod1a026e2021-07-30 16:03:06 +00003static uint x_1 = 0u;
4static bool x_7 = false;
5static bool x_8 = false;
6
7void main_1() {
8 const bool x_101 = x_7;
9 const bool x_102 = x_8;
Antonio Maiorano06844a52022-09-29 16:53:58 +000010 while (true) {
Ben Claytonb990d392023-03-02 09:25:40 +000011 uint x_2 = 0u;
David Netod1a026e2021-07-30 16:03:06 +000012 if (x_101) {
13 break;
14 }
Ben Claytonb990d392023-03-02 09:25:40 +000015 x_2 = 0u;
David Netod1a026e2021-07-30 16:03:06 +000016 if (x_102) {
Ben Claytonb990d392023-03-02 09:25:40 +000017 x_2 = 1u;
David Netod1a026e2021-07-30 16:03:06 +000018 {
Ben Claytonb990d392023-03-02 09:25:40 +000019 x_1 = x_2;
David Netod1a026e2021-07-30 16:03:06 +000020 }
21 continue;
22 } else {
23 {
Ben Claytonb990d392023-03-02 09:25:40 +000024 x_1 = x_2;
David Netod1a026e2021-07-30 16:03:06 +000025 }
26 continue;
27 }
David Netod1a026e2021-07-30 16:03:06 +000028 {
Ben Claytonb990d392023-03-02 09:25:40 +000029 x_1 = x_2;
David Netod1a026e2021-07-30 16:03:06 +000030 }
31 }
32 return;
33}
34
35void main() {
36 main_1();
37 return;
38}
Ben Clayton0fba14e2022-07-26 14:23:24 +000039DXC validation failure:
Ben Claytonb990d392023-03-02 09:25:40 +000040warning: DXIL signing library (dxil.dll,libdxil.so) not found. Resulting DXIL will not be signed for use in release environments.
Ben Clayton2c1fbe82021-07-30 17:18:36 +000041
42error: validation errors
Ben Clayton0fba14e2022-07-26 14:23:24 +000043shader.hlsl:33: error: Loop must have break.
Ben Clayton2c1fbe82021-07-30 17:18:36 +000044Validation failed.
45
46
47