blob: 7187a77379846e4cb70f8fb8f2dc82ffe3568365 [file]
// REQUIRES: host-supports-jit
// RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -verify
auto x = unknown_val;
// expected-error@input_line_4:1 {{use of undeclared identifier 'unknown_val'}}
int get_int() { return 42; }
char* ptr = get_int();
// expected-error@input_line_8:1 {{cannot initialize a variable of type 'char *' with an rvalue of type 'int'}}
// Verify without input_line_*
int y = ;
// expected-error {{expected expression}}
const char* a = "test"; // expected-note {{previous definition is here}}
const char* a = ""; // expected-error {{redefinition of 'a'}}