diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
| commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
| tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/SemaCXX/Inputs | |
| parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) | |
Notes
Diffstat (limited to 'test/SemaCXX/Inputs')
| -rw-r--r-- | test/SemaCXX/Inputs/lit.local.cfg | 1 | ||||
| -rw-r--r-- | test/SemaCXX/Inputs/register.h | 5 | ||||
| -rw-r--r-- | test/SemaCXX/Inputs/warn-unused-variables.h | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/test/SemaCXX/Inputs/lit.local.cfg b/test/SemaCXX/Inputs/lit.local.cfg deleted file mode 100644 index e6f55eef7af5..000000000000 --- a/test/SemaCXX/Inputs/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = [] diff --git a/test/SemaCXX/Inputs/register.h b/test/SemaCXX/Inputs/register.h new file mode 100644 index 000000000000..3c412eeb1205 --- /dev/null +++ b/test/SemaCXX/Inputs/register.h @@ -0,0 +1,5 @@ +#pragma GCC system_header +#pragma once + +inline void f() { register int k; } +#define to_int(x) ({ register int n = (x); n; }) diff --git a/test/SemaCXX/Inputs/warn-unused-variables.h b/test/SemaCXX/Inputs/warn-unused-variables.h index 5fac45922c99..56990e0a33de 100644 --- a/test/SemaCXX/Inputs/warn-unused-variables.h +++ b/test/SemaCXX/Inputs/warn-unused-variables.h @@ -7,5 +7,7 @@ class A {}; class B { static A a; + static A b; + static const int x = sizeof(b); }; } |
