diff options
Diffstat (limited to 'test/SemaCXX/blocks-1.cpp')
| -rw-r--r-- | test/SemaCXX/blocks-1.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/blocks-1.cpp b/test/SemaCXX/blocks-1.cpp index d93997ad6835..29de1e666ad7 100644 --- a/test/SemaCXX/blocks-1.cpp +++ b/test/SemaCXX/blocks-1.cpp @@ -33,3 +33,13 @@ int main (int argc, const char * argv[]) { return 0; } + +namespace rdar8134521 { + void foo() { + int (^P)(int) = reinterpret_cast<int(^)(int)>(1); + P = (int(^)(int))(1); + + P = reinterpret_cast<int(^)(int)>((void*)1); + P = (int(^)(int))((void*)1); + } +} |
