summaryrefslogtreecommitdiffstats
path: root/src/test/ui/test-attrs/test-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/test-attrs/test-type.rs')
-rw-r--r--src/test/ui/test-attrs/test-type.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/ui/test-attrs/test-type.rs b/src/test/ui/test-attrs/test-type.rs
new file mode 100644
index 000000000..f99e476ea
--- /dev/null
+++ b/src/test/ui/test-attrs/test-type.rs
@@ -0,0 +1,27 @@
+// compile-flags: --test
+// run-flags: --test-threads=1
+// check-run-results
+// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
+// ignore-emscripten no threads support
+// run-pass
+
+#[test]
+fn test_ok() {
+ let _a = true;
+}
+
+#[test]
+#[should_panic]
+fn test_panic() {
+ panic!();
+}
+
+#[test]
+#[ignore = "msg"]
+fn test_no_run() {
+ loop {
+ println!("Hello, world");
+ }
+}
+
+fn main() {}