This is an archive of the discontinued LLVM Phabricator instance.

Isolate zero_whitespace parser test into its own file.
ClosedPublic

Authored by silvas on Apr 22 2020, 7:58 PM.

Details

Summary

This test is in a different file because it contains a literal NUL
character, which causes various tools to treat it as a binary file.
Hence it is useful to have this test kept in a separate, rarely-changing
file.

Diff Detail

Event Timeline

silvas created this revision.Apr 22 2020, 7:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2020, 7:58 PM
rriddle accepted this revision.Apr 22 2020, 7:59 PM
This revision is now accepted and ready to land.Apr 22 2020, 7:59 PM

zero_whitespace.mlir looks like this:

// RUN: mlir-opt %s | FileCheck %s

// This test is in a different file because it contains a literal NUL
// character, which causes various tools to treat it as a binary file.
// Hence it is useful to have this test kept in a separate, rarely-changing
// file.

// CHECK-LABEL: func @zero_whitespace() {
// CHECK-NEXT: return
func @zero_whitespace() {
  ^@  // This is a \0 byte.
  return
}
This revision was automatically updated to reflect the committed changes.