summaryrefslogtreecommitdiffstats
path: root/src/test/ui/track-diagnostics/track.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/track-diagnostics/track.rs')
-rw-r--r--src/test/ui/track-diagnostics/track.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/track-diagnostics/track.rs b/src/test/ui/track-diagnostics/track.rs
new file mode 100644
index 000000000..61b9137ea
--- /dev/null
+++ b/src/test/ui/track-diagnostics/track.rs
@@ -0,0 +1,11 @@
+// compile-flags: -Z track-diagnostics
+// error-pattern: created at
+
+// Normalize the emitted location so this doesn't need
+// updating everytime someone adds or removes a line.
+// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
+// normalize-stderr-test "note: rustc .+ running on .+" -> "note: rustc $$VERSION running on $$TARGET"
+
+fn main() {
+ break rust
+}