mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 18:55:39 +00:00
Fixes MSL 1.2 error: 'auto' return without trailing return type; deduced return types are a C++14 extension Bug: tint:1327 Change-Id: I5956aadf6b28b605b07c9681716ac4b3e31d804a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/71683 Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
16 lines
159 B
Plaintext
16 lines
159 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct A {
|
|
int a;
|
|
};
|
|
struct B {
|
|
int b;
|
|
};
|
|
|
|
B f(A a) {
|
|
B const tint_symbol = {};
|
|
return tint_symbol;
|
|
}
|
|
|