From: Joel Rosdahl Date: Sun, 29 Dec 2019 19:06:32 +0000 (+0100) Subject: Test .incbin detection for assembler compilation X-Git-Tag: v3.7.7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9530b9d423b3e1b52f2fb7b3cf3376eb3044384;p=thirdparty%2Fccache.git Test .incbin detection for assembler compilation --- diff --git a/test/suites/base.bash b/test/suites/base.bash index a8d8acdc4..5df538c53 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1060,10 +1060,11 @@ EOF fi # ------------------------------------------------------------------------- +if ! $HOST_OS_WINDOWS; then TEST ".incbin" cat <incbin.c -char x[] = ".incbin"; +__asm__(".incbin \"/dev/null\""); EOF $CCACHE_COMPILE -c incbin.c @@ -1071,6 +1072,16 @@ EOF expect_stat 'cache miss' 0 expect_stat 'unsupported code directive' 1 + cat <incbin.s +.incbin "/dev/null"; +EOF + + $CCACHE_COMPILE -c incbin.s + expect_stat 'cache hit (preprocessed)' 0 + expect_stat 'cache miss' 0 + expect_stat 'unsupported code directive' 2 +fi + # ------------------------------------------------------------------------- TEST "UNCACHED_ERR_FD"