Skip to content

Commit ef40d52

Browse files
committed
Adding a test case that I accidentally dropped from 27ea7d0
1 parent 0545680 commit ef40d52

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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
4+
5+
#if !__has_feature(attribute_availability)
6+
# error 'availability' attribute is not available
7+
#endif
8+
9+
void f7() __attribute__((availability(macosx,message=L"wide"))); // expected-error {{expected string literal for optional message in 'availability' attribute}}
10+
11+
void f8() __attribute__((availability(macosx,message="a" L"b"))); // expected-error {{expected string literal for optional message in 'availability' attribute}}

0 commit comments

Comments
 (0)