diff --git a/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts b/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts
new file mode 100644
index 00000000000..3a89b600c66
--- /dev/null
+++ b/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts
@@ -0,0 +1,8 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Fileame: file1.ts
+
+///
+declare var OData: any;
\ No newline at end of file
diff --git a/tests/cases/compiler/doNotEmitTripleSlashComments.ts b/tests/cases/compiler/doNotEmitTripleSlashComments.ts
new file mode 100644
index 00000000000..11e7dee5796
--- /dev/null
+++ b/tests/cases/compiler/doNotEmitTripleSlashComments.ts
@@ -0,0 +1,7 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Filename: file1.ts
+///
+var OData: any;
\ No newline at end of file
diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts
new file mode 100644
index 00000000000..f511e75085b
--- /dev/null
+++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments1.ts
@@ -0,0 +1,11 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Filename: file1.ts
+
+//
+// Copy Right comment
+//
+
+///
diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts
new file mode 100644
index 00000000000..424c7374717
--- /dev/null
+++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments2.ts
@@ -0,0 +1,12 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Filename: file1.ts
+
+//
+// Copy Right comment
+//
+
+///
+var x = 10;
\ No newline at end of file
diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts
new file mode 100644
index 00000000000..95f1bb4cbbb
--- /dev/null
+++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsButPreserveDetachComments3.ts
@@ -0,0 +1,10 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Filename: file1.ts
+
+//
+// Copy Right comment
+//
+///
diff --git a/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts b/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts
new file mode 100644
index 00000000000..99f6a292342
--- /dev/null
+++ b/tests/cases/compiler/doNotEmitTripleSlashCommentsEvenInAmbientDeclaration.ts
@@ -0,0 +1,8 @@
+// @comments: false
+
+// @Filename: file0.ts
+
+// @Filename: file1.ts
+
+///
+declare var OData: any;
\ No newline at end of file