summaryrefslogtreecommitdiff
path: root/tests/headers/issue-1443.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-03-06 14:16:22 +0100
committerGitHub <noreply@github.com>2019-03-06 14:16:22 +0100
commit185a5f322e973b60f8d0986672f9a88e5d9a07bd (patch)
tree4fa6d49cb0270b3e1c55ef27b74838f2a1569814 /tests/headers/issue-1443.hpp
parent3a6864cf9a76916c002c41a8ae813d9f8bd9853e (diff)
parent9b6d0e84b432d95b3bfdf5a19b8abadde768489c (diff)
Merge pull request #1531 from emilio/ref-layoutv0.48.1
Work around a libclang bug / limitation.
Diffstat (limited to 'tests/headers/issue-1443.hpp')
-rw-r--r--tests/headers/issue-1443.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/headers/issue-1443.hpp b/tests/headers/issue-1443.hpp
new file mode 100644
index 00000000..9b637ba7
--- /dev/null
+++ b/tests/headers/issue-1443.hpp
@@ -0,0 +1,21 @@
+struct Foo;
+
+struct Bar {
+ const Foo& f;
+ unsigned m;
+};
+
+struct Baz {
+ Foo& f;
+ unsigned m;
+};
+
+struct Tar {
+ const Foo&& f;
+ unsigned m;
+};
+
+struct Taz {
+ Foo&& f;
+ unsigned m;
+};