|
34 | 34 | // PIXEL: #define __SHADER_TARGET_STAGE 0 |
35 | 35 | // VERTEX: #define __SHADER_TARGET_STAGE 1 |
36 | 36 |
|
37 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl2015 | FileCheck -match-full-lines %s --check-prefixes=STD2015 |
| 37 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2015 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2015 |
| 38 | +// STD2015: warning: support for HLSL language version hlsl2015 is incomplete, recommend using hlsl202x instead |
38 | 39 | // STD2015: #define __HLSL_VERSION 2015 |
39 | 40 |
|
40 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl2016 | FileCheck -match-full-lines %s --check-prefixes=STD2016 |
| 41 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2016 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2016 |
| 42 | +// STD2016: warning: support for HLSL language version hlsl2016 is incomplete, recommend using hlsl202x instead |
41 | 43 | // STD2016: #define __HLSL_VERSION 2016 |
42 | 44 |
|
43 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl2017 | FileCheck -match-full-lines %s --check-prefixes=STD2017 |
| 45 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2017 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2017 |
| 46 | +// STD2017: warning: support for HLSL language version hlsl2017 is incomplete, recommend using hlsl202x instead |
44 | 47 | // STD2017: #define __HLSL_VERSION 2017 |
45 | 48 |
|
46 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl2018 | FileCheck -match-full-lines %s --check-prefixes=STD2018 |
| 49 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2018 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2018 |
| 50 | +// STD2018: warning: support for HLSL language version hlsl2018 is incomplete, recommend using hlsl202x instead |
47 | 51 | // STD2018: #define __HLSL_VERSION 2018 |
48 | 52 |
|
49 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl2021 | FileCheck -match-full-lines %s --check-prefixes=STD2021 |
| 53 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl2021 2>&1 | FileCheck -match-full-lines %s --check-prefixes=STD2021 |
| 54 | +// STD2021: warning: support for HLSL language version hlsl2021 is incomplete, recommend using hlsl202x instead |
50 | 55 | // STD2021: #define __HLSL_VERSION 2021 |
51 | 56 |
|
52 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl202x | FileCheck -match-full-lines %s --check-prefixes=STD202x |
| 57 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl202x | FileCheck -match-full-lines %s --check-prefixes=STD202x |
| 58 | +// STD202x-NOT: warning |
53 | 59 | // STD202x: #define __HLSL_VERSION 2028 |
54 | 60 |
|
55 | | -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library %s -E -dM -o - -x hlsl -std=hlsl202y | FileCheck -match-full-lines %s --check-prefixes=STD202y |
| 61 | +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library %s -E -dM -o - -x hlsl -std=hlsl202y | FileCheck -match-full-lines %s --check-prefixes=STD202y |
| 62 | +// STD202y-NOT: warning |
56 | 63 | // STD202y: #define __HLSL_VERSION 2029 |
0 commit comments