Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/plugin/show-template-tree-color.C @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Verify colorization of the output of -fdiagnostics-show-template-tree, and within the %H and %I format codes. Doing so requires a plugin; see the comments in the plugin for the rationale. */ // { dg-options "-fdiagnostics-show-template-tree -fdiagnostics-color=always" } template<typename> struct vector {}; template<typename, typename> struct map {}; void fn_1(vector<int>); void fn_2(map<int, int>); void test () { fn_1 (vector<double> ()); /* { dg-begin-multiline-output "" } could not convert '[01m[Kvector<double>()[m[K' from '[01m[Kvector<[01;32m[Kdouble[m[K>[m[K' to '[01m[Kvector<[01;32m[Kint[m[K>[m[K' vector< [[01;32m[Kdouble[m[K != [01;32m[Kint[m[K]> { dg-end-multiline-output "" } */ fn_2 (map<int, double>()); /* { dg-begin-multiline-output "" } could not convert '[01m[Kmap<int, double>()[m[K' from '[01m[Kmap<[...],[01;32m[Kdouble[m[K>[m[K' to '[01m[Kmap<[...],[01;32m[Kint[m[K>[m[K' map< [...], [[01;32m[Kdouble[m[K != [01;32m[Kint[m[K]> { dg-end-multiline-output "" } */ }