Skip to content

Commit

Permalink
Adding a test case that I accidentally dropped from 27ea7d0
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBallman committed Dec 15, 2020
1 parent 0545680 commit ef40d52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions clang/test/Parser/attr-availability-xcore.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Test availability message string type when wide characters are 1 byte.
// REQUIRES: xcore-registered-target
// RUN: %clang_cc1 -triple xcore -fsyntax-only -verify %s

#if !__has_feature(attribute_availability)
# error 'availability' attribute is not available
#endif

void f7() __attribute__((availability(macosx,message=L"wide"))); // expected-error {{expected string literal for optional message in 'availability' attribute}}

void f8() __attribute__((availability(macosx,message="a" L"b"))); // expected-error {{expected string literal for optional message in 'availability' attribute}}

0 comments on commit ef40d52

Please sign in to comment.