reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
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; } } |