mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
tests: avoid creating files whose name collide with standard headers
Having a file named "exception" is risky: the compiler might use that file in #include. Reported by 马俊 <majun123@whu.edu.cn>. * tests/local.at (AT_SKIP_IF_EXCEPTION_SUPPORT_IS_POOR): Generate 'exceptions', not 'exception'.
This commit is contained in:
3
THANKS
3
THANKS
@@ -205,8 +205,9 @@ Wwp subscript@free.fr
|
|||||||
xolodho xolodho@gmail.com
|
xolodho xolodho@gmail.com
|
||||||
Yuichiro Kaneko spiketeika@gmail.com
|
Yuichiro Kaneko spiketeika@gmail.com
|
||||||
Zack Weinberg zack@codesourcery.com
|
Zack Weinberg zack@codesourcery.com
|
||||||
長田偉伸 cbh34680@iret.co.jp
|
|
||||||
江 祖铭 jjzuming@outlook.com
|
江 祖铭 jjzuming@outlook.com
|
||||||
|
長田偉伸 cbh34680@iret.co.jp
|
||||||
|
马俊 majun123@whu.edu.cn
|
||||||
|
|
||||||
Many people are not named here because we lost track of them. We
|
Many people are not named here because we lost track of them. We
|
||||||
thank them! Please, help us keeping this list up to date.
|
thank them! Please, help us keeping this list up to date.
|
||||||
|
|||||||
@@ -1199,7 +1199,7 @@ m4_ifval([$2],
|
|||||||
# Check that we can expect exceptions to be handled properly.
|
# Check that we can expect exceptions to be handled properly.
|
||||||
# GCC 4.3 and 4.4 fail https://trac.macports.org/ticket/40853.
|
# GCC 4.3 and 4.4 fail https://trac.macports.org/ticket/40853.
|
||||||
m4_define([AT_SKIP_IF_EXCEPTION_SUPPORT_IS_POOR],
|
m4_define([AT_SKIP_IF_EXCEPTION_SUPPORT_IS_POOR],
|
||||||
[AT_DATA_SOURCE([exception.cc],
|
[AT_DATA_SOURCE([exceptions.cc],
|
||||||
[[#include <iostream>
|
[[#include <iostream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
@@ -1230,10 +1230,9 @@ int main ()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
AT_COMPILE_CXX([exception])
|
AT_COMPILE_CXX([exceptions])
|
||||||
# The "empty" quadrigraph is to protect from cfg.mk's
|
# The "empty" quadrigraph is to protect from cfg.mk's sc_at_parser_check.
|
||||||
# sc_at_parser_check.
|
AT_CHECK([@&t@./exceptions || exit 77], [0], [], [ignore])
|
||||||
AT_CHECK([@&t@./exception || exit 77], [0], [], [ignore])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user