summaryrefslogtreecommitdiff
path: root/tests/diagnostics/variable-redeclaration.slang.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/variable-redeclaration.slang.expected')
-rw-r--r--tests/diagnostics/variable-redeclaration.slang.expected24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/diagnostics/variable-redeclaration.slang.expected b/tests/diagnostics/variable-redeclaration.slang.expected
index 1998c13c8..842038180 100644
--- a/tests/diagnostics/variable-redeclaration.slang.expected
+++ b/tests/diagnostics/variable-redeclaration.slang.expected
@@ -30,6 +30,30 @@ tests/diagnostics/variable-redeclaration.slang(21): error 30200: declaration of
tests/diagnostics/variable-redeclaration.slang(20): note: see previous declaration of 'y'
int y = x;
^
+tests/diagnostics/variable-redeclaration.slang(41): error 30200: declaration of 'f' conflicts with existing declaration
+struct S
+ ^
+tests/diagnostics/variable-redeclaration.slang(41): note: see previous declaration of 'f'
+struct S
+ ^
+tests/diagnostics/variable-redeclaration.slang(43): error 39999: ambiguous reference to 'f'
+ int f;
+ ^
+tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f
+ float f;
+ ^
+tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f
+ int f;
+ ^
+tests/diagnostics/variable-redeclaration.slang(44): error 39999: ambiguous reference to 'f'
+ float f;
+ ^
+tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f
+ float f;
+ ^
+tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f
+ int f;
+ ^
tests/diagnostics/variable-redeclaration.slang(53): error 39999: ambiguous reference to 'size'
return size;
^~~~