From be02472fced1b558262c6bbbc0f92f6a0c95ca70 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Sun, 29 Jan 2017 10:38:16 +0100 Subject: tests: Add an integration test for static arrays. Turns out they were broken before https://github.com/servo/rust-bindgen/issues/456. Let's test it so it doesn't regress. --- bindgen-integration/cpp/Test.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bindgen-integration/cpp/Test.cc') diff --git a/bindgen-integration/cpp/Test.cc b/bindgen-integration/cpp/Test.cc index d9c13a76..fa0ff827 100644 --- a/bindgen-integration/cpp/Test.cc +++ b/bindgen-integration/cpp/Test.cc @@ -1,5 +1,12 @@ #include "Test.h" +const int Test::COUNTDOWN[] = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +const int* Test::COUNTDOWN_PTR = Test::COUNTDOWN; + +const int* Test::countdown() { + return COUNTDOWN; +} + const char* Test::name() { return "Test"; } -- cgit v1.2.3