[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / attr-availability-xcore.c
blob6bc1f45c8ed9faf07fe15ecfa184444deb65307a
1 // Test availability message string type when wide characters are 1 byte.
2 // REQUIRES: xcore-registered-target
3 // RUN: %clang_cc1 -triple xcore -fsyntax-only -verify %s
5 #if !__has_feature(attribute_availability)
6 # error 'availability' attribute is not available
7 #endif
9 void f7() __attribute__((availability(macosx,message=L"wide"))); // expected-warning {{encoding prefix 'L' on an unevaluated string literal has no effect}}
11 void f8() __attribute__((availability(macosx,message="a" L"b"))); // expected-warning {{encoding prefix 'L' on an unevaluated string literal has no effect}}