2 // The LLVM Compiler Infrastructure
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
7 // -*- mode:C; c-basic-offset:4; tab-width:4; intent-tabs-mode:nil; -*-
8 // CONFIG error: incompatible block pointer types assigning
13 int main(int argc
, char *argv
[]) {
16 rot13
= ^(char c
) { return (char)(((c
- 'a' + 13) % 26) + 'a'); };
19 if ( n
!= 'n' || c
!= 'c' ) {
20 printf("%s: rot13('a') returned %c, rot13('p') returns %c\n", argv
[0], n
, c
);
24 // yield characteristic error message for C++
25 #error incompatible block pointer types assigning
28 // yield characteristic error message for C++
29 #error incompatible block pointer types assigning
31 printf("%s: success\n", argv
[0]);