repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
fallthrough2.C
blob
f2d0ce1c6930dc1f913a9444ff2d33b828cb4560
1
// PR c/7652
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wextra -Wall -Wpedantic" }
4
5
extern void bar (int);
6
7
void
8
f (int i)
9
{
10
switch (i)
11
{
12
case 1:
13
bar (1);
14
[[fallthrough]];
15
case 3:
16
bar (1);
17
[[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" }
18
case 2:
19
bar (2);
20
}
21
}