diff options
author | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | 2021-08-03 15:19:00 +0530 |
---|---|---|
committer | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | 2021-08-03 15:20:04 +0530 |
commit | 748aa9b65364d72b0f9a36139e292eaf3bc86aa4 (patch) | |
tree | e8785d977bfd3c8eb1e0f2042f54f0eae1a90033 /gdb/c-lang.h | |
parent | cee6789e1bb0aaa7f4e43ab22e4660039c6b1f34 (diff) | |
download | binutils-748aa9b65364d72b0f9a36139e292eaf3bc86aa4.zip binutils-748aa9b65364d72b0f9a36139e292eaf3bc86aa4.tar.gz binutils-748aa9b65364d72b0f9a36139e292eaf3bc86aa4.tar.bz2 |
[gdb/testsuite] templates.exp to accept clang++ output
Please consider below testcase with intended error.
``````````
constexpr const char cstring[] = "Eta";
template <const char*, typename T> class Column {};
using quick = Column<cstring,double>; // cstring without '&'
void lookup() {
quick c1;
c1.ls();
}
``````````
It produces below error.
``````````
no member named 'ls' in 'Column<&cstring, double>'.
``````````
Please note that error message contains '&' for cstring, which is absent
in actual program.
Clang++ does not generate & in such cases and this should also be
accepted as correct output.
gdb/testsuite/ChangeLog:
* gdb.cp/templates.exp: Accept different but correct output
from the Clang++ compiled binary also.
Diffstat (limited to 'gdb/c-lang.h')
0 files changed, 0 insertions, 0 deletions