@@ -79,7 +79,7 @@ class Derived2 : public Derived1 {
7979class Derived3 : public Derived2 {
8080 public:
8181 void f (const char * p) override { // $ ir-path=124:19 ir-path=126:43 ir-path=128:44
82- sink (p); // $ ir-sink=124:19 ir-sink=126:43 ir-sink=128:44 ast,ir=124:19 ast,ir=126:43 ast,ir =128:44
82+ sink (p); // $ ast, ir-sink=124:19 ast, ir-sink=126:43 ast,ir-sink =128:44
8383 }
8484};
8585
@@ -89,41 +89,41 @@ class CRTPDoesNotCallSink : public CRTP<CRTPDoesNotCallSink> {
8989};
9090
9191int main (int argc, char *argv[]) {
92- sink (argv[0 ]); // $ ast ir-path ir-sink
92+ sink (argv[0 ]); // $ ast, ir-path, ir-sink
9393
94- sink (reinterpret_cast <int >(argv)); // $ ast ir-sink
94+ sink (reinterpret_cast <int >(argv)); // $ ast, ir-sink
9595
96- calls_sink_with_argv (argv[1 ]); // $ ast ir-path=96:26 ir-path=98:18
96+ calls_sink_with_argv (argv[1 ]); // $ ast, ir-path
9797
98- char *** p = &argv; // $ ast ir-path=96:26 ir-path=98:18
98+ char *** p = &argv; // $ ast, ir-path
9999
100- sink (*p[0 ]); // $ ast ir-sink
100+ sink (*p[0 ]); // $ ast, ir-sink
101101
102102 calls_sink_with_argv (*p[i]); // $ MISSING: ast,ir-path
103103
104- sink (*(argv + 1 )); // $ ast ir-path ir-sink
104+ sink (*(argv + 1 )); // $ ast, ir-path ir-sink
105105
106106 BaseWithPureVirtual* b = new DerivedCallsSink;
107107
108- b->f (argv[1 ]); // $ ast ir-path
108+ b->f (argv[1 ]); // $ ast, ir-path
109109
110110 b = new DerivedDoesNotCallSink;
111111 b->f (argv[0 ]); // $ SPURIOUS: ast
112112
113113 BaseWithPureVirtual* b2 = new DerivesMultiple;
114114
115- b2->f (argv[i]); // $ ast ir-path
115+ b2->f (argv[i]); // $ ast, ir-path
116116
117117 CRTP<CRTPDoesNotCallSink> crtp_not_call_sink;
118118 crtp_not_call_sink.f (argv[0 ]); // clean
119119
120120 CRTP<CRTPCallsSink> crtp_calls_sink;
121- crtp_calls_sink.f (argv[0 ]); // $ ast ir-path
121+ crtp_calls_sink.f (argv[0 ]); // $ ast, ir-path
122122
123123 Derived1* calls_sink = new Derived3;
124- calls_sink->f (argv[1 ]); // $ ast ir-path=124:19 ir-path=126:43 ir-path=128:44
124+ calls_sink->f (argv[1 ]); // $ ast, ir-path
125125
126- static_cast <Derived2*>(calls_sink)->f (argv[1 ]); // $ ast ir-path=124:19 ir-path=126:43 ir-path=128:44
126+ static_cast <Derived2*>(calls_sink)->f (argv[1 ]); // $ ast, ir-path
127127
128- dynamic_cast <Derived2*>(calls_sink)->f (argv[1 ]); // $ ast ir-path=124:19 ir-path=126:43 ir-path=128:44
128+ dynamic_cast <Derived2*>(calls_sink)->f (argv[1 ]); // $ ast, ir-path
129129}
0 commit comments