-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preprocessor: implement
__has_c_attribute
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//aro-args -std=c2x | ||
#if defined __has_c_attribute | ||
# if __has_c_attribute(fallthrough) | ||
#error attribute exists | ||
# endif | ||
# if __has_c_attribute(does_not_exist) | ||
#error attribute exists | ||
# endif | ||
#endif | ||
|
||
#define EXPECTED_ERRORS "__has_c_attribute.c:4:8: error: attribute exists" |