Skip to content

Commit 1ef4c98

Browse files
committed
Remove attempt to test system header from tests/plugin/callgraph
(The output varied too much between different compiler releases)
1 parent 5f4ff8a commit 1ef4c98

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

tests/plugin/callgraph/input.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@
1717
<http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#include <stdio.h>
21-
22-
extern const char *name;
23-
2420
void foo()
2521
{
26-
printf ("hello %s\n", name);
2722
}
2823

2924
void bar(void)

tests/plugin/callgraph/stdout.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ class CallgraphEdge(__builtin__.object)
5656
| __new__ = <built-in method __new__ of gcc.WrapperMeta object>
5757
| T.__new__(S, ...) -> a new object with type S, a subtype of T
5858

59-
cgn:
60-
cgn.decl: gcc.FunctionDecl('printf')
61-
cgn.decl.location.in_system_header: True
62-
cgn.callers: [gcc.CallgraphEdge()]
63-
cgn.callees: []
64-
gcc.CallgraphEdge()
65-
e.caller: gcc.CallgraphNode()
66-
e.callee: gcc.CallgraphNode()
67-
e.call_stmt: gcc.GimpleCall() printf ("hello %s\n", name.0);
6859
cgn:
6960
cgn.decl: gcc.FunctionDecl('baz')
7061
cgn.decl.location.in_system_header: False
@@ -91,7 +82,7 @@ cgn:
9182
cgn.decl: gcc.FunctionDecl('foo')
9283
cgn.decl.location.in_system_header: False
9384
cgn.callers: [gcc.CallgraphEdge(), gcc.CallgraphEdge(), gcc.CallgraphEdge()]
94-
cgn.callees: [gcc.CallgraphEdge()]
85+
cgn.callees: []
9586
gcc.CallgraphEdge()
9687
e.caller: gcc.CallgraphNode()
9788
e.callee: gcc.CallgraphNode()

0 commit comments

Comments
 (0)