Home | History | Annotate | Download | only in unique-types
      1 //===-- main.c --------------------------------------------------*- C++ -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #include <vector>
     10 
     11 #include <stdio.h>
     12 #include <stdint.h>
     13 
     14 int main (int argc, char const *argv[], char const *envp[])
     15 {
     16     std::vector<long> longs;
     17     std::vector<short> shorts;
     18     for (int i=0; i<12; i++)
     19     {
     20         longs.push_back(i);
     21         shorts.push_back(i);
     22     }
     23     return 0; // Set breakpoint here to verify that std::vector 'longs' and 'shorts' have unique types.
     24 }
     25