1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s -verify
2 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -DSTRUCT -o - %s -verify
11 int legs; // expected-note {{member is declared here}} expected-note {{member is declared here}}
12 protected: // expected-warning {{access specifiers are a clang HLSL extension}}
13 int ears[2]; // expected-note {{declared protected here}}
14 private: // expected-warning {{access specifiers are a clang HLSL extension}}
15 int tail; // expected-note {{declared private here}} expected-note {{declared private here}}
18 KEYWORD Shiba : public Doggo { // expected-warning {{access specifiers are a clang HLSL extension}}
22 KEYWORD Akita : Doggo {
26 KEYWORD Chow : private Doggo { // expected-warning {{access specifiers are a clang HLSL extension}} expected-note {{constrained by private inheritance here}}
30 KEYWORD Dachshund : protected Doggo { // expected-warning {{access specifiers are a clang HLSL extension}} expected-note {{constrained by protected inheritance here}}
36 Shibe.undercoat = 0xFFFF;
39 Shibe.tail = 1; // expected-error {{'tail' is a private member of 'Doggo'}}
40 Shibe.ears[0] = 1; // expected-error {{'ears' is a protected member of 'Doggo'}}
46 Aki.tail = 1; // expected-error {{'tail' is a private member of 'Doggo'}}
49 Ch.megafloof = 0xFFFF;
51 Ch.legs = 4; // expected-error {{'legs' is a private member of 'Doggo'}}
54 DH.legs = 4; // expected-error {{'legs' is a protected member of 'Doggo'}}