blob: 82f3eede57429330170adbda067b242c888283df [file] [log] [blame] [edit]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
struct a {
int a;
};
void f(a a) {
a const b = a;
}
program_source:9:4: error: expected ';' after expression
a const b = a;
^
;
program_source:9:11: error: C++ requires a type specifier for all declarations
a const b = a;
~~~~~ ^
program_source:9:3: warning: expression result unused [-Wunused-value]
a const b = a;
^