 func for_ignored_lvalue_init() {
   var i = 0
   for i;  // expected-error {{expression resolves to an unused l-value}}
-    i < 10; i += 1 {}
+    i < 10; ++i {}
 }
 
 // rdar://problem/18643692
 func for_loop_multi_iter() {
-  for (var i = 0, x = 0; i < 10; i += 1,
+  for (var i = 0, x = 0; i < 10; i++,
        x) { // expected-error {{expression resolves to an unused l-value}}
-    x -= 1
-  }
-}
+    --x
+  }
+}
+

  default:
    markUsed("")
  }

  let x : Int? = 42

  // <rdar://problem/16879701> Should be able to pattern match 'nil' against optionals
  switch x {
  case .Some(42): break
  case nil: break

  }

}





func test_require(x : Int, y : Int??, cond : Bool) {
  
  // These are all ok.
  guard let a = y else {}
  markUsed(a)
