blob: de13c82b1153d33d6c5e93fec788b0e46d5c14bf [file] [log] [blame] [edit]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
struct a {
int a;
};
void f() {
a const a_1 = a{};
a const b = a_1;
a const a = a{};
a const b_1 = a;
}
program_source:11:16: error: expected ';' at end of declaration
a const a = a{};
^
;
program_source:12:4: error: expected ';' after expression
a const b_1 = a;
^
;
program_source:12:11: error: C++ requires a type specifier for all declarations
a const b_1 = a;
~~~~~ ^
program_source:11:15: warning: variable 'a' is uninitialized when used within its own initialization [-Wuninitialized]
a const a = a{};
~ ^
program_source:12:3: warning: expression result unused [-Wunused-value]
a const b_1 = a;
^