       'quote 1'
     assert_compile_fail CompileError,
       "nofile:1: invalid options for quote, expected a keyword list",
-      '''
-      quote :foo do
-        foo
-      end
-      '''
+      'quote(:foo, do: foo)'
   end
 
   test "invalid calls" do

    assert_raise ArgumentError, message, fn ->
      defmodule DocAttributesFormat do
        @moduledoc "ModuleTest"
        {676, "ModuleTest"} = Module.get_attribute(__MODULE__, :moduledoc)
        Module.put_attribute(__MODULE__, :moduledoc, "Other")
      end
    end

  test "invalid for bit generator" do
    assert_compile_fail CompileError,
      "nofile:1: bitstring fields without size are not allowed in bitstring generators",
      'for <<x::binary <- "123">>, do: x'
  end

  test "invalid size in bitstrings" do
