C++: Add failing test.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-10-16 14:13:55 +01:00
parent bee073dee5
commit 9ea4c40ca9
2 changed files with 19 additions and 0 deletions

View File

@@ -1115,4 +1115,20 @@ void indirect_sink_const_ref(const T&);
void test_temp_with_conversion_from_materialization() {
indirect_sink_const_ref(source()); // $ ir MISSING: ast
}
void reads_input(int x) {
sink(x); // $ MISSING: ast,ir
}
void not_does_read_input(int x);
void (*dispatch_table[])(int) = {
reads_input,
not_does_read_input
};
void test_dispatch_table(int i) {
int x = source();
dispatch_table[i](x);
}