Index: tests/phpunit/tests/formatting/Autop.php
===================================================================
--- tests/phpunit/tests/formatting/Autop.php	(revision 30080)
+++ tests/phpunit/tests/formatting/Autop.php	(working copy)
@@ -400,4 +400,16 @@
 
 		$this->assertEquals( $expected, trim( wpautop( $content ) ) );
 	}
+
+	/**
+	 * @ticket 27350
+	 */
+	function test_wpautop_div_with_pre() {
+		$input = "hello<div>test</div>";
+		$expected = '<p>hello</p>
+<div>test</div>';
+
+	$this->assertEquals( $expected, wpautop( $input ) );
+	}
+
 }
