Skip to content

Commit

Permalink
Update embed test
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongnull committed Jul 13, 2024
1 parent 72a52ef commit 05e389c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cases/#embed.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ const int bar =
;
_Static_assert(bar == 'H', "");

# if __has_embed("include/embed data" foo(1)) != 0
# if __has_embed("include/embed data" foo(1)) != __STDC_EMBED_NOT_FOUND__
#error unknown param was accepted
#endif

# if __has_embed("doesn't exist") != 0
# if __has_embed("doesn't exist") != __STDC_EMBED_NOT_FOUND__
#error non-existent embed found
#endif

# if __has_embed("include/embed data" limit(1)) != 1
# if __has_embed("include/embed data" limit(1)) != __STDC_EMBED_FOUND__
#error embed should be found
#endif

# if __has_embed("include/empty") != 2
# if __has_embed("include/empty") != __STDC_EMBED_EMPTY__
#error empty wasn't detected
#endif

Expand Down

0 comments on commit 05e389c

Please sign in to comment.