We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fcdd36 commit 26a9366Copy full SHA for 26a9366
tests/all/test_passes.rs
@@ -112,12 +112,16 @@ fn test_pass_manager_builder() {
112
builder.position_at_end(&entry);
113
builder.build_return(None);
114
115
+ #[cfg(not(feature = "llvm3-7"))]
116
+ assert!(!fn_pass_manager.initialize());
117
+ #[cfg(feature = "llvm3-7")]
118
+ fn_pass_manager.initialize();
119
+
120
// TODO: Test with actual changes? Would be true in that case
121
// REVIEW: Segfaults in 4.0
122
#[cfg(not(feature = "llvm4-0"))]
123
assert!(!fn_pass_manager.run_on(&fn_value));
124
- assert!(!fn_pass_manager.initialize());
125
assert!(!fn_pass_manager.finalize());
126
127
let module_pass_manager = PassManager::create(());
0 commit comments