1 // { dg-options "-fdump-tree-optimized -Os" }
7 static const int array[] = { 1,2,3,4,5,6,7,8,9,10,6 };
10 for (unsigned i = 0; i < sizeof(array)/sizeof(*array); i++)
12 std::pair<std::set<int>::iterator, bool> result =
13 the_set.insert(array[i]);
17 printf("%d unique items in array.\n", count);
21 // This function is small enough to be inlined even at -Os.
22 // { dg-final { scan-tree-dump-not "_ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEED2Ev" "optimized" } }