You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
221 B

// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++ -pedantic -verify -fsyntax-only
// expected-no-diagnostics
// Extract from PR38614
struct C {};
C f1() {
return C{};
}
C f2(){
C c;
return c;
}