2 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 // See https://llvm.org/LICENSE.txt for license information.
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // -*- mode:C; c-basic-offset:4; tab-width:4; intent-tabs-mode:nil; -*-
7 // CONFIG error: incompatible block pointer types assigning
12 int main(int argc
, char *argv
[]) {
15 rot13
= ^(char c
) { return (char)(((c
- 'a' + 13) % 26) + 'a'); };
18 if ( n
!= 'n' || c
!= 'c' ) {
19 printf("%s: rot13('a') returned %c, rot13('p') returns %c\n", argv
[0], n
, c
);
23 // yield characteristic error message for C++
24 #error incompatible block pointer types assigning
27 // yield characteristic error message for C++
28 #error incompatible block pointer types assigning
30 printf("%s: success\n", argv
[0]);