With patch from bug #698912 reverted we observe failures as:
* Testing tc-cpp-is-true (gcc, defined) ... [ ok ]
* Testing tc-cpp-is-true (gcc, not defined) ... [ ok ]
* Testing tc-cpp-is-true (gcc, defined on -ggdb3) ... [ !! ]
* Testing tc-cpp-is-true (clang, defined) ... [ !! ]
* Testing tc-cpp-is-true (clang, not defined) ... [ ok ]
* Testing tc-cpp-is-true (clang, defined on -ggdb3) ... [ !! ]
Closes: https://bugs.gentoo.org/698912
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
tend $?
fi
+for compiler in gcc clang; do
+ if type -P ${compielr} &>/dev/null; then
+ tbegin "tc-cpp-is-true ($compiler, defined)"
+ (
+ export CC=${compiler}
+ tc-cpp-is-true "defined(SOME_DEFINED_SYMBOL)" -DSOME_DEFINED_SYMBOL
+ )
+ tend $?
+ tbegin "tc-cpp-is-true ($compiler, not defined)"
+ (
+ export CC=${compiler}
+ ! tc-cpp-is-true "defined(SOME_UNDEFINED_SYMBOL)"
+ )
+ tend $?
+
+ tbegin "tc-cpp-is-true ($compiler, defined on -ggdb3)"
+ (
+ export CC=${compiler}
+ tc-cpp-is-true "defined(SOME_DEFINED_SYMBOL)" -DSOME_DEFINED_SYMBOL -ggdb3
+ )
+ tend $?
+ fi
+done
+
texit