brintos

brintos / llvm-project-archived public Read only

0
0
Text · 586 B · 6bc1f45 Raw
12 lines · c
1// Test availability message string type when wide characters are 1 byte.2// REQUIRES: xcore-registered-target3// RUN: %clang_cc1 -triple xcore -fsyntax-only -verify %s4 5#if !__has_feature(attribute_availability)6#  error 'availability' attribute is not available7#endif8 9void f7() __attribute__((availability(macosx,message=L"wide"))); // expected-warning {{encoding prefix 'L' on an unevaluated string literal has no effect}}10 11void f8() __attribute__((availability(macosx,message="a" L"b"))); // expected-warning {{encoding prefix 'L' on an unevaluated string literal has no effect}}12