tint: Add builtin type aliases (vec3f, etc)
Fixed: tint:1772
Change-Id: I4bed36ded91ca5288875ed6ea819ff4bbb432186
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112340
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
diff --git a/test/tint/shadowing/alias/builtin/const.wgsl b/test/tint/shadowing/alias/builtin/const.wgsl
new file mode 100644
index 0000000..e1fb581
--- /dev/null
+++ b/test/tint/shadowing/alias/builtin/const.wgsl
@@ -0,0 +1,10 @@
+type a = vec3f;
+
+fn f() {
+ {
+ const vec3f = 1;
+ const b = vec3f;
+ }
+ const c = a();
+ const d = vec3f();
+}