Skip to content

Commit

Permalink
Add test for #787.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Feb 11, 2022
1 parent 4966584 commit 6765b70
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions integration-tests/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7679,6 +7679,23 @@ fn test_class_having_private_method() {
run_test("", hdr, rs, &[], &["A"]);
}

#[test]
#[ignore] // https://github.com/google/autocxx/issues/787
fn test_chrono_problem() {
let hdr = indoc! {"
#include <chrono>
struct Clock {
typedef std::chrono::nanoseconds duration;
};
struct Class {
int a() { return 42; }
std::chrono::time_point<Clock> b();
};
"};
let rs = quote! {};
run_test("", hdr, rs, &[], &["Class"]);
}

fn size_and_alignment_test(pod: bool) {
static TYPES: [(&'static str, &'static str); 6] = [
("A", "struct A { uint8_t a; };"),
Expand Down

0 comments on commit 6765b70

Please sign in to comment.