Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / test-76.cs
blob91377cee80a13667ff53c607ca1a515a1d3d6999
1 //
2 // This test is used to verify that we handle functions that have
3 // only an array parameter
4 //
6 using System;
7 using System.Text;
9 class foo {
11 static string strcat (params string [] values)
13 StringBuilder s = new StringBuilder ();
15 foreach (string val in values) {
16 s.Append (val);
19 return s.ToString ();
22 public static int Main ()
24 if (strcat ("Hello", "World") != "HelloWorld")
25 return 1;
27 if (strcat () != "")
28 return 2;
30 if (strcat ("a", "b", "c", "d", "e") != "abcde")
31 return 3;
33 return 0;