annotate gcc/testsuite/g++.dg/spellcheck-pr78656.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-options "-fdiagnostics-show-caret" }
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 #include <memory>
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 void* allocate(std::size_t n)
kono
parents:
diff changeset
6 {
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
7 return std::allocate<char>().allocate(n); // { dg-error ".allocate. is not a member of .std.; did you mean 'allocator'\\?" }
111
kono
parents:
diff changeset
8 /* { dg-begin-multiline-output "" }
kono
parents:
diff changeset
9 return std::allocate<char>().allocate(n);
kono
parents:
diff changeset
10 ^~~~~~~~
kono
parents:
diff changeset
11 allocator
kono
parents:
diff changeset
12 { dg-end-multiline-output "" } */
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 // Various errors follow that we don't care about; suppress them:
kono
parents:
diff changeset
15 // { dg-excess-errors "7: " }
kono
parents:
diff changeset
16 }
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 void* test_2(std::size_t n)
kono
parents:
diff changeset
19 {
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
20 return std::alocator<char>().allocate(n); // { dg-error ".alocator. is not a member of .std.; did you mean 'allocator'\\?" }
111
kono
parents:
diff changeset
21 /* { dg-begin-multiline-output "" }
kono
parents:
diff changeset
22 return std::alocator<char>().allocate(n);
kono
parents:
diff changeset
23 ^~~~~~~~
kono
parents:
diff changeset
24 allocator
kono
parents:
diff changeset
25 { dg-end-multiline-output "" } */
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 // Various errors follow that we don't care about; suppress them:
kono
parents:
diff changeset
28 // { dg-excess-errors "25: " }
kono
parents:
diff changeset
29 }