Skip to content

Commit eebb3eb

Browse files
committed
tests: Add a test for rust-lang#2556
1 parent 2b36168 commit eebb3eb

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

bindgen-tests/tests/expectations/tests/issue-2556.rs

+43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// bindgen-flags: --enable-cxx-namespaces -- -x c++ -Itests/headers -include tests/headers/issue-2556/nsStyleStruct.h -include tests/headers/issue-2556/LayoutConstants.h
2+
3+
#include "issue-2556/nsSize.h"
4+
#include "issue-2556/nsStyleStruct.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "nsSize.h"
2+
3+
namespace foo {
4+
5+
static constexpr nsSize kFallbackIntrinsicSize(0, 0);
6+
7+
} // namespace mozilla
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#pragma once
2+
3+
struct nsSize {
4+
int width, height;
5+
constexpr nsSize(int aWidth, int aHeight) : width(aWidth), height(aHeight) {}
6+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#include "nsSize.h"

0 commit comments

Comments
 (0)