c-c++-common/builtin-has-attribute-4.c: Require visibility.
authorHans-Peter Nilsson <hp@bitrange.com>
Thu, 23 Jul 2020 02:27:25 +0000 (04:27 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 23 Jul 2020 02:28:27 +0000 (04:28 +0200)
Another missed attribute-visibility-requirement, causing a failure for
e.g. mmix-knuth-mmixware.  Committed as obvious.

gcc/testsuite:
* c-c++-common/builtin-has-attribute-4.c: Require visibility.

gcc/testsuite/c-c++-common/builtin-has-attribute-4.c

index 3a960aae2ff601e3d2fde89c927b48b44ae9b4ec..c9ab9cf3c798750930ff450653d6e5d02c14d7a2 100644 (file)
@@ -4,6 +4,7 @@
    { dg-options "-Wall -ftrack-macro-expansion=0" }
    { dg-options "-Wall -Wno-narrowing -Wno-unused -ftrack-macro-expansion=0" { target c++ } }
    { dg-additional-options "-DSKIP_ALIAS" { target *-*-darwin* } }
+   { dg-require-visibility "hidden" }
 */
 
 #define ATTR(...) __attribute__ ((__VA_ARGS__))