blob: 86ce7e17009be54cba5e3a11f039adc3d57c4aeb (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// RUN: %clang_cc1 -funknown-anytype -fblocks -fsyntax-only -verify -std=c++11 %s
namespace test1 {
__unknown_anytype (^foo)();
__unknown_anytype (^bar)();
int test() {
auto ret1 = (int)foo();
auto ret2 = bar(); // expected-error {{'bar' has unknown return type; cast the call to its declared return type}}
return ret1;
}
}
|