The DTrace harness (dtest.pl) executes DTrace scripts with the -C flag,
which causes dtrace(1) to run the C preprocessor on input scripts before executing them. Suppress some warnings emitted by the preprocessor which are confusing the DTrace lexer tests. MFC after: 1 week
This commit is contained in:
parent
6e9584fd15
commit
c0d678c9dd
@ -36,8 +36,10 @@
|
||||
|
||||
BEGIN
|
||||
{
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||
h = '
|
||||
';
|
||||
#pragma clang diagnostic pop
|
||||
exit(0);
|
||||
}
|
||||
|
@ -36,7 +36,9 @@
|
||||
|
||||
BEGIN
|
||||
{
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||
h = '';
|
||||
exit(0);
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
@ -36,9 +36,11 @@
|
||||
|
||||
BEGIN
|
||||
{
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||
h = "hello
|
||||
|
||||
there";
|
||||
exit(0);
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user