]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/ucn-objc-string.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / ucn-objc-string.m
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // expected-no-diagnostics
3 @class NSString;
4 extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
5
6 int main() {
7   NSLog(@"Hi…");
8   NSLog(@"Exposé");
9   NSLog(@"\U00010400\U0001D12B");
10   NSLog(@"hello \u2192 \u2603 \u2190 world");
11   NSLog(@"hello → ☃ ← world");
12   return 0;
13 }
14