diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-30 23:39:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-30 23:39:07 -0800 |
| commit | cc1b96d91d8875bf727079d58fbf78af1135f505 (patch) | |
| tree | 593a6aae09e2710390ac34fdeb84614872ac9d5f /tests/diagnostics/interfaces | |
| parent | 88e221bad60ce20087fe2f8a85d506be36a6e6ca (diff) | |
Check mismatching method parameter direction against interface declaration. (#5964)
Diffstat (limited to 'tests/diagnostics/interfaces')
| -rw-r--r-- | tests/diagnostics/interfaces/mutating-impl-of-non-mutating-req.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/diagnostics/interfaces/mutating-impl-of-non-mutating-req.slang b/tests/diagnostics/interfaces/mutating-impl-of-non-mutating-req.slang index 2dbe45ccb..3c7c874c9 100644 --- a/tests/diagnostics/interfaces/mutating-impl-of-non-mutating-req.slang +++ b/tests/diagnostics/interfaces/mutating-impl-of-non-mutating-req.slang @@ -1,7 +1,6 @@ // mutating-impl-of-non-mutating-req.slang -//DIAGNOSTIC_TEST:SIMPLE:-target hlsl -entry main - +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):-target hlsl -entry main interface IThing { int processValue(int inValue); @@ -10,7 +9,8 @@ interface IThing struct Counter : IThing { int state; - + + // CHECK: ([[# @LINE+1]]): error 38105: [mutating] int processValue(int inValue) { int result = state; |
