28 lines · plain
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only -Wno-legacy-constant-register-binding %s -verify2 3// expected-no-diagnostics4float f2 : register(b9);5 6float f3 : register(i9);7 8cbuffer g_cbuffer1 {9 float f4 : register(c2);10};11 12 13struct Eg12{14 RWBuffer<int> a;15};16 17Eg12 e12 : register(c9);18 19Eg12 bar : register(i1);20 21struct Eg7 {22 struct Bar {23 float f;24 };25 Bar b;26};27Eg7 e7 : register(t0);28